Open Bug 1069620 Opened 11 years ago Updated 3 years ago

gfxPrefs should deal with callback scenarios

Categories

(Core :: Graphics, defect)

x86
All
defect

Tracking

()

People

(Reporter: milan, Unassigned)

Details

Attachments

(1 file)

Suggested by :seth in https://bugzilla.mozilla.org/show_bug.cgi?id=980036#c3. Good idea, lets us be consistent.
Assignee: nobody → milan
Attachment #8497592 - Attachment is obsolete: true
Attachment #8497592 - Flags: review?(bas)
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 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+
(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!
Assignee: milaninbugzilla → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: