Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Issue 159190: Refactor blits (Closed)

Created:
11 years, 5 months ago by Antoine Labour
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Refactor blits to be more cross-platform. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=21565

Patch Set 1 #

Patch Set 2 : fix mac build ? #

Total comments: 2

Patch Set 3 : remove ScopedNativeDrawingContext #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -119 lines) Patch
M base/base.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download
A base/gfx/blit.h View 1 chunk +47 lines, -0 lines 0 comments Download
A base/gfx/blit.cc View 1 2 1 chunk +87 lines, -0 lines 0 comments Download
M chrome/plugin/webplugin_proxy.cc View 1 2 chunks +5 lines, -6 lines 0 comments Download
M chrome/renderer/webplugin_delegate_proxy.cc View 1 5 chunks +8 lines, -98 lines 0 comments Download
M webkit/glue/plugins/webplugin_delegate_impl_gtk.cc View 3 chunks +11 lines, -15 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Antoine Labour
Amanda: I don't have a mac, and could only check that the trybots came out ...
11 years, 5 months ago (2009-07-24 06:31:09 UTC) #1
Amanda Walker (Google)
Nice, much cleaner :-). Mac stuff LGTM, and no need to wait for my changes--there ...
11 years, 5 months ago (2009-07-24 13:14:03 UTC) #2
Amanda Walker (Google)
http://codereview.chromium.org/159190/diff/1001/15 File base/gfx/blit.cc (right): http://codereview.chromium.org/159190/diff/1001/15#newcode55 Line 55: #endif I don't understand this typedef in two ...
11 years, 5 months ago (2009-07-24 13:14:18 UTC) #3
Evan Martin
LGTM, though I share Amanda's puzzlement about the scoped bits.
11 years, 5 months ago (2009-07-24 14:56:57 UTC) #4
pimanttr
http://codereview.chromium.org/159190/diff/1001/15 File base/gfx/blit.cc (right): http://codereview.chromium.org/159190/diff/1001/15#newcode55 Line 55: #endif On 2009/07/24 13:14:18, Amanda Walker (Google) wrote: ...
11 years, 5 months ago (2009-07-24 16:26:09 UTC) #5
Amanda Walker (Google)
Ah--that's a misunderstanding. In native Mac API terms, a "Ref" suffix just denotes an opaque ...
11 years, 5 months ago (2009-07-24 16:32:33 UTC) #6
Antoine Labour
On Fri, Jul 24, 2009 at 4:32 PM, Amanda Walker<awalker@google.com> wrote: > Ah--that's a misunderstanding. ...
11 years, 5 months ago (2009-07-24 16:35:13 UTC) #7
jam
lgtm, nice cleanup
11 years, 5 months ago (2009-07-24 18:28:37 UTC) #8
Antoine Labour
11 years, 5 months ago (2009-07-24 20:24:21 UTC) #9
On Fri, Jul 24, 2009 at 4:26 PM, <pimanttr@gmail.com> wrote:
>
> http://codereview.chromium.org/159190/diff/1001/15
> File base/gfx/blit.cc (right):
>
> http://codereview.chromium.org/159190/diff/1001/15#newcode55
> Line 55: #endif
> On 2009/07/24 13:14:18, Amanda Walker (Google) wrote:
>>
>> I don't understand this typedef in two respects. =A0For OS_MACOSX,
>> gfx::NativeDrawingContext is already a typedef for CGContextRef, so
>
> the #if
>>
>> should not be needed. =A0Also, what is the purpose of adding "scoped"
>
> without
>>
>> wrapping it in a scoping template or some such? =A0If the following
>
> routines are
>>
>> all this is used for, I think you can safely get rid of the typedef
>
> and change
>>
>> GetContextFromCanvas to just return a NativeDrawingContext.
>
> Unless I'm crazy NativeDrawingContext is a CGContext* on Mac - whereas
> device.GetBitmapContext() returns a CGContextRef. I assumed the
> CGContextRef was doing ref-counting, so I wanted to make sure we didn't
> lose the reference.
>
> http://codereview.chromium.org/159190
>

Updated the CL with that.

Antoine

Powered by Google App Engine
This is Rietveld 408576698