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

Unified Diff: cc/raster/tile_task_worker_pool.h

Issue 1139063002: cc: Partial tile update for one-copy raster. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: monocle: rebase Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/raster/tile_task_runner.h ('k') | cc/raster/tile_task_worker_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/raster/tile_task_worker_pool.h
diff --git a/cc/raster/tile_task_worker_pool.h b/cc/raster/tile_task_worker_pool.h
index 75916f5dd6f2e5020a3479b6dfd33892dccf6d9b..71ea0ff3560c8e19d51fc4d930c4c857665f4aa0 100644
--- a/cc/raster/tile_task_worker_pool.h
+++ b/cc/raster/tile_task_worker_pool.h
@@ -54,13 +54,18 @@ class CC_EXPORT TileTaskWorkerPool {
unsigned priority);
// Utility function that will create a temporary bitmap and copy pixels to
- // |memory| when necessary.
+ // |memory| when necessary. The |canvas_bitmap_rect| is the rect of the bitmap
+ // being played back in the pixel space of the source, ie a rect in the source
+ // that will cover the resulting |memory|. The |canvas_playback_rect| can be a
+ // smaller contained rect inside the |canvas_bitmap_rect| if the |memory| is
+ // already partially complete, and only the subrect needs to be played back.
static void PlaybackToMemory(void* memory,
ResourceFormat format,
const gfx::Size& size,
int stride,
const RasterSource* raster_source,
- const gfx::Rect& rect,
+ const gfx::Rect& canvas_bitmap_rect,
+ const gfx::Rect& canvas_playback_rect,
float scale);
// Type-checking downcast routine.
« no previous file with comments | « cc/raster/tile_task_runner.h ('k') | cc/raster/tile_task_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698