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

Issue 11074009: cc: Remove LayerTextureUpdater::Texture::updateRect() callback. (Closed)

Created:
8 years, 2 months ago by reveman
Modified:
8 years, 2 months ago
Reviewers:
enne (OOO), piman
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

cc: Remove LayerTextureUpdater::Texture::updateRect() callback. This is the first step towards cleaning up and simplifying the resource update system. Eliminates the LayerTextureUpdater::Texture::updateRect() callback by moving some logic to CCResourceProvider. Remaining logic is now contained in LayerTextureUpdater::Texture::update(). The logic itself is not changed, this is only re-factoring. BUG=154472 TEST=manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161752

Patch Set 1 #

Total comments: 2

Patch Set 2 : Move accelerated painting code out of CCResourceProvider. #

Patch Set 3 : Rebase and move ClearUploadsToEvictedResources test to CCPrioritizedTextureTest. #

Total comments: 2

Patch Set 4 : Rebase. #

Patch Set 5 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+295 lines, -278 lines) Patch
M cc/bitmap_canvas_layer_texture_updater.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M cc/bitmap_canvas_layer_texture_updater.cc View 1 2 3 4 3 chunks +9 lines, -8 lines 0 comments Download
M cc/bitmap_skpicture_canvas_layer_texture_updater.h View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M cc/bitmap_skpicture_canvas_layer_texture_updater.cc View 1 2 3 4 3 chunks +7 lines, -8 lines 0 comments Download
M cc/frame_buffer_skpicture_canvas_layer_texture_updater.h View 1 2 3 4 3 chunks +1 line, -9 lines 0 comments Download
M cc/frame_buffer_skpicture_canvas_layer_texture_updater.cc View 1 2 3 4 3 chunks +3 lines, -65 lines 0 comments Download
M cc/image_layer.cc View 1 2 3 4 4 chunks +9 lines, -5 lines 0 comments Download
M cc/layer_texture_updater.h View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M cc/layer_texture_updater.cc View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
M cc/layer_tree_host_unittest.cc View 1 2 3 9 chunks +17 lines, -44 lines 0 comments Download
M cc/prioritized_texture_unittest.cc View 1 2 3 1 chunk +44 lines, -0 lines 0 comments Download
M cc/scrollbar_layer.cc View 1 2 3 4 1 chunk +1 line, -4 lines 0 comments Download
M cc/skpicture_canvas_layer_texture_updater.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/skpicture_canvas_layer_texture_updater.cc View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M cc/test/tiled_layer_test_common.h View 1 2 3 2 chunks +3 lines, -10 lines 0 comments Download
M cc/test/tiled_layer_test_common.cc View 1 2 3 2 chunks +8 lines, -9 lines 0 comments Download
M cc/texture_update_controller.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/texture_update_controller_unittest.cc View 1 2 3 6 chunks +6 lines, -51 lines 0 comments Download
M cc/texture_update_queue.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M cc/texture_uploader.h View 1 2 3 4 1 chunk +15 lines, -3 lines 0 comments Download
M cc/throttled_texture_uploader.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/throttled_texture_uploader.cc View 1 2 3 4 3 chunks +97 lines, -3 lines 0 comments Download
M cc/throttled_texture_uploader_unittest.cc View 1 2 3 3 chunks +15 lines, -16 lines 0 comments Download
M cc/tiled_layer.cc View 1 2 3 4 2 chunks +4 lines, -9 lines 0 comments Download
M cc/tiled_layer_unittest.cc View 1 2 3 11 chunks +20 lines, -20 lines 0 comments Download
M cc/unthrottled_texture_uploader.cc View 1 2 3 4 2 chunks +14 lines, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
reveman
This is a large change that pave the way for other resource update cleanups. This ...
8 years, 2 months ago (2012-10-08 17:28:24 UTC) #1
nduca
This is hard to evaluate without context. Can you give some context, e.g. "what it ...
8 years, 2 months ago (2012-10-08 17:35:01 UTC) #2
piman
https://chromiumcodereview.appspot.com/11074009/diff/1/cc/CCResourceProvider.h File cc/CCResourceProvider.h (right): https://chromiumcodereview.appspot.com/11074009/diff/1/cc/CCResourceProvider.h#newcode102 cc/CCResourceProvider.h:102: void acceleratedUpdate(ResourceId, SkPicture*, const IntRect& pictureRect, const IntRect& sourceRect, ...
8 years, 2 months ago (2012-10-08 18:33:42 UTC) #3
reveman
https://chromiumcodereview.appspot.com/11074009/diff/1/cc/CCResourceProvider.h File cc/CCResourceProvider.h (right): https://chromiumcodereview.appspot.com/11074009/diff/1/cc/CCResourceProvider.h#newcode102 cc/CCResourceProvider.h:102: void acceleratedUpdate(ResourceId, SkPicture*, const IntRect& pictureRect, const IntRect& sourceRect, ...
8 years, 2 months ago (2012-10-08 19:45:01 UTC) #4
piman
On 2012/10/08 19:45:01, David Reveman wrote: > https://chromiumcodereview.appspot.com/11074009/diff/1/cc/CCResourceProvider.h > File cc/CCResourceProvider.h (right): > > https://chromiumcodereview.appspot.com/11074009/diff/1/cc/CCResourceProvider.h#newcode102 ...
8 years, 2 months ago (2012-10-08 19:49:30 UTC) #5
reveman
On 2012/10/08 19:49:30, piman wrote: > On 2012/10/08 19:45:01, David Reveman wrote: > > https://chromiumcodereview.appspot.com/11074009/diff/1/cc/CCResourceProvider.h ...
8 years, 2 months ago (2012-10-08 20:19:52 UTC) #6
piman
On Mon, Oct 8, 2012 at 1:19 PM, <reveman@chromium.org> wrote: > On 2012/10/08 19:49:30, piman ...
8 years, 2 months ago (2012-10-08 20:26:05 UTC) #7
nduca
Another option here folks is to r
8 years, 2 months ago (2012-10-10 00:31:44 UTC) #8
nduca
Whoops, didn't mean to comment. Nothing to say here. :)
8 years, 2 months ago (2012-10-10 00:32:18 UTC) #9
reveman
8 years, 2 months ago (2012-10-12 19:59:29 UTC) #10
enne (OOO)
lgtm. I like this cleanup a lot. https://codereview.chromium.org/11074009/diff/3002/cc/LayerTextureUpdater.h File cc/LayerTextureUpdater.h (right): https://codereview.chromium.org/11074009/diff/3002/cc/LayerTextureUpdater.h#newcode34 cc/LayerTextureUpdater.h:34: virtual void ...
8 years, 2 months ago (2012-10-12 21:25:04 UTC) #11
reveman
https://codereview.chromium.org/11074009/diff/3002/cc/LayerTextureUpdater.h File cc/LayerTextureUpdater.h (right): https://codereview.chromium.org/11074009/diff/3002/cc/LayerTextureUpdater.h#newcode34 cc/LayerTextureUpdater.h:34: virtual void update(CCTextureUpdateQueue&, const IntRect& sourceRect, const IntSize& destOffset, ...
8 years, 2 months ago (2012-10-12 21:43:11 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/11074009/3002
8 years, 2 months ago (2012-10-12 21:45:24 UTC) #13
commit-bot: I haz the power
Failed to apply patch for cc/CCLayerTreeHostTest.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years, 2 months ago (2012-10-12 21:45:35 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/11074009/25001
8 years, 2 months ago (2012-10-12 22:11:21 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/11074009/25003
8 years, 2 months ago (2012-10-13 06:14:09 UTC) #16
commit-bot: I haz the power
8 years, 2 months ago (2012-10-13 10:20:29 UTC) #17
Change committed as 161752

Powered by Google App Engine
This is Rietveld 408576698