WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 61953
cleanup DrawingBufferChromium, correct comment
https://bugs.webkit.org/show_bug.cgi?id=61953
Summary
cleanup DrawingBufferChromium, correct comment
John Bates
Reported
2011-06-02 13:05:47 PDT
cleanup DrawingBufferChromium, correct comment
Attachments
Patch
(5.15 KB, patch)
2011-06-02 13:07 PDT
,
John Bates
no flags
Details
Formatted Diff
Diff
Patch
(5.33 KB, patch)
2011-06-02 14:11 PDT
,
John Bates
no flags
Details
Formatted Diff
Diff
Patch
(5.26 KB, patch)
2011-06-02 15:26 PDT
,
John Bates
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
John Bates
Comment 1
2011-06-02 13:07:40 PDT
Created
attachment 95794
[details]
Patch
John Bates
Comment 2
2011-06-02 13:15:32 PDT
Ready for review
Kenneth Russell
Comment 3
2011-06-02 13:28:05 PDT
Comment on
attachment 95794
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=95794&action=review
> Source/WebCore/platform/graphics/chromium/DrawingBufferChromium.cpp:46 > +class Canvas2DLayerChromium { };
I doubt this will compile. RefPtr requires certain methods.
James Robinson
Comment 4
2011-06-02 13:31:31 PDT
Comment on
attachment 95794
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=95794&action=review
Patch looks great, but R- for the odd forward declaration and lack of verbosity in the ChangeLog. Thanks a bunch for cleaning this up.
> Source/WebCore/ChangeLog:8 > +
https://bugs.webkit.org/show_bug.cgi?id=61953
> + > + * platform/graphics/chromium/DrawingBufferChromium.cpp:
please put a more verbose description here if what this patch does.
> Source/WebCore/platform/graphics/chromium/DrawingBufferChromium.cpp:46 > +class Canvas2DLayerChromium { };
To forward declare Canvas2DLayerChromium just do: class Canvas2DLayerChromium; I don't think you need to do this, however - do you? I think all the references to Canvas2DLayerChromium are guarded by #if USE(ACCELERATED_COMPOSITING), or at least they should be.
John Bates
Comment 5
2011-06-02 13:49:20 PDT
Comment on
attachment 95794
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=95794&action=review
>>> Source/WebCore/platform/graphics/chromium/DrawingBufferChromium.cpp:46 >>> +class Canvas2DLayerChromium { }; >> >> I doubt this will compile. RefPtr requires certain methods. > > To forward declare Canvas2DLayerChromium just do: > > class Canvas2DLayerChromium; > > I don't think you need to do this, however - do you? I think all the references to Canvas2DLayerChromium are guarded by #if USE(ACCELERATED_COMPOSITING), or at least they should be.
It wasn't a forward declare, it was a dirty attempt to avoid referring to USE(ACCELERATED_COMPOSITING) in DrawingBuffer.h. But, Ken's right, it won't compile since it doesn't have the RefPtr methods. I'll just use #if USE(ACCELERATED_COMPOSITING) in DrawingBuffer.h.
John Bates
Comment 6
2011-06-02 14:11:55 PDT
Created
attachment 95804
[details]
Patch
James Robinson
Comment 7
2011-06-02 14:15:35 PDT
Comment on
attachment 95804
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=95804&action=review
> Source/WebCore/platform/graphics/chromium/DrawingBufferChromium.cpp:83 > + , m_platformLayer(0)
You don't need to 0-initialize RefPtr<>s, and in fact this'll stop compiling when we get stricter about RefPtr/PassRefPtr usage. Just leave the initialization out - the default c'tor for RefPtr does the right thing.
John Bates
Comment 8
2011-06-02 14:27:21 PDT
Comment on
attachment 95794
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=95794&action=review
>> Source/WebCore/ChangeLog:8 >> + * platform/graphics/chromium/DrawingBufferChromium.cpp: > > please put a more verbose description here if what this patch does.
Done.
John Bates
Comment 9
2011-06-02 15:26:55 PDT
Created
attachment 95823
[details]
Patch
John Bates
Comment 10
2011-06-02 15:27:08 PDT
Comment on
attachment 95804
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=95804&action=review
>> Source/WebCore/platform/graphics/chromium/DrawingBufferChromium.cpp:83 >> + , m_platformLayer(0) > > You don't need to 0-initialize RefPtr<>s, and in fact this'll stop compiling when we get stricter about RefPtr/PassRefPtr usage. Just leave the initialization out - the default c'tor for RefPtr does the right thing.
Done.
James Robinson
Comment 11
2011-06-02 15:39:13 PDT
Comment on
attachment 95823
[details]
Patch Rock
WebKit Commit Bot
Comment 12
2011-06-02 19:11:00 PDT
Comment on
attachment 95823
[details]
Patch Clearing flags on attachment: 95823 Committed
r87987
: <
http://trac.webkit.org/changeset/87987
>
WebKit Commit Bot
Comment 13
2011-06-02 19:11:05 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug