Open
Bug 1069620
Opened 11 years ago
Updated 3 years ago
gfxPrefs should deal with callback scenarios
Categories
(Core :: Graphics, defect)
Tracking
()
NEW
People
(Reporter: milan, Unassigned)
Details
Attachments
(1 file)
|
7.21 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
Suggested by :seth in https://bugzilla.mozilla.org/show_bug.cgi?id=980036#c3. Good idea, lets us be consistent.
| Reporter | ||
Updated•11 years ago
|
Assignee: nobody → milan
| Reporter | ||
Comment 1•11 years ago
|
||
Attachment #8497592 -
Flags: review?(bas)
| Reporter | ||
Updated•11 years ago
|
Attachment #8497592 -
Attachment is obsolete: true
Attachment #8497592 -
Flags: review?(bas)
Comment 2•11 years ago
|
||
Comment on attachment 8497592 [details] [diff] [review]
One potential approach for Moz2D
Review of attachment 8497592 [details] [diff] [review]:
-----------------------------------------------------------------
This approach should work and adds no performance overhead, which is also good. I like it!
::: gfx/2d/Logging.h
@@ +55,5 @@
> }
>
> #endif
>
> +class PreferenceAccess;
Why would you forward declare here? Probably just slipped in by accident :)
@@ +60,5 @@
> +class PreferenceAccess
> +{
> +public:
> + virtual ~PreferenceAccess();
> + virtual void LivePref(const char* aName, int32_t* aVar, int32_t aDefault);
Let's document this function so people overloading it understand what we're doing :).
Attachment #8497592 -
Attachment is obsolete: false
Comment 3•11 years ago
|
||
Comment on attachment 8497592 [details] [diff] [review]
One potential approach for Moz2D
Review of attachment 8497592 [details] [diff] [review]:
-----------------------------------------------------------------
Seems bugzilla got confused.
Attachment #8497592 -
Flags: review+
| Reporter | ||
Comment 4•11 years ago
|
||
(In reply to Bas Schouten (:bas.schouten) from comment #2)
> ...
> >
> > +class PreferenceAccess;
>
> Why would you forward declare here? Probably just slipped in by accident :)
Old habit, since I'm using PreferenceAccess* inside the class. I'll get rid of it and try changing my habits :)
>
> ...
> > + virtual void LivePref(const char* aName, int32_t* aVar, int32_t aDefault);
>
> Let's document this function so people overloading it understand what we're
> doing :).
Good point, will do.
Thanks!
| Reporter | ||
Updated•8 years ago
|
Assignee: milaninbugzilla → nobody
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•