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

Issue 6246129: BackingStoreSkia: Use skia for painting in RenderWidgetHostViewViews. (Closed)

Created:
9 years, 10 months ago by sadrul
Modified:
9 years, 6 months ago
Reviewers:
rjkroege, agl, Alex Nicolaou, sky
CC:
chromium-reviews, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

BackingStoreSkia: Use skia for painting in RenderWidgetHostViewViews. Instead of directly painting to X, paint to the skia canvas from RWHVV. This will make it easier to apply transformation to views in a uniform way, without requiring any special-casing for RWHVV. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=74840 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=74859

Patch Set 1 #

Total comments: 12

Patch Set 2 : Address comments from agl. #

Patch Set 3 : Use drawBitmapRect instead of readPixels/writePixels to avoid double-copy #

Total comments: 2

Patch Set 4 : Add NOTE #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -10 lines) Patch
A chrome/browser/renderer_host/backing_store_skia.h View 1 2 1 chunk +51 lines, -0 lines 0 comments Download
A chrome/browser/renderer_host/backing_store_skia.cc View 1 2 3 4 1 chunk +105 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_views.cc View 1 2 3 4 9 chunks +39 lines, -10 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
sadrul
Please add additional reviewers as you see fit.
9 years, 10 months ago (2011-02-05 05:45:04 UTC) #1
sky
agl is likely a good fit to review this. -Scott
9 years, 10 months ago (2011-02-07 17:12:58 UTC) #2
agl
The code seems reasonable, although I have no idea what its purpose is. (Maybe the ...
9 years, 10 months ago (2011-02-07 17:26:47 UTC) #3
sadrul
Addressed the comments. Thanks for the review. http://codereview.chromium.org/6246129/diff/1/chrome/browser/renderer_host/render_widget_host_view_views.cc File chrome/browser/renderer_host/render_widget_host_view_views.cc (right): http://codereview.chromium.org/6246129/diff/1/chrome/browser/renderer_host/render_widget_host_view_views.cc#newcode37 chrome/browser/renderer_host/render_widget_host_view_views.cc:37: static const ...
9 years, 10 months ago (2011-02-07 18:22:38 UTC) #4
agl
LGTM
9 years, 10 months ago (2011-02-07 18:28:38 UTC) #5
sadrul
On 2011/02/07 17:26:47, agl wrote: > The code seems reasonable, although I have no idea ...
9 years, 10 months ago (2011-02-07 18:34:45 UTC) #6
rjkroege
LGTM with nits. Please emphasize the temporary nature of this code: the expectation is to ...
9 years, 10 months ago (2011-02-07 19:36:40 UTC) #7
sadrul
I added a comment about temporary status in the header, and made a change to ...
9 years, 10 months ago (2011-02-07 20:55:38 UTC) #8
rjkroege
LGTM. http://codereview.chromium.org/6246129/diff/2003/chrome/browser/renderer_host/backing_store_skia.cc File chrome/browser/renderer_host/backing_store_skia.cc (right): http://codereview.chromium.org/6246129/diff/2003/chrome/browser/renderer_host/backing_store_skia.cc#newcode39 chrome/browser/renderer_host/backing_store_skia.cc:39: return size().GetArea() * 4; My whining about this ...
9 years, 10 months ago (2011-02-07 21:03:24 UTC) #9
sadrul
9 years, 10 months ago (2011-02-07 21:31:51 UTC) #10
http://codereview.chromium.org/6246129/diff/2003/chrome/browser/renderer_host...
File chrome/browser/renderer_host/backing_store_skia.cc (right):

http://codereview.chromium.org/6246129/diff/2003/chrome/browser/renderer_host...
chrome/browser/renderer_host/backing_store_skia.cc:39: return size().GetArea() *
4;
On 2011/02/07 21:03:24, rjkroege wrote:
> My whining about this doesn't apply until you permit passing in the bitmap
> object so it's fine for now. I'm just worrying about some future where we
wanted
> to make the bitmap providable. 
> 
> You'd satisfy me with a comment here.

Done.

Powered by Google App Engine
This is Rietveld 408576698