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

Unified Diff: cc/raster/tile_task_worker_pool.h

Issue 1854513002: cc: Add RasterSource::PlaybackSettings for finer control of raster. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/raster_buffer.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 db78391738bfa094db2259f760694f710e412148..e56807f16e85f3b542c54bf7069baaaa0c0782ba 100644
--- a/cc/raster/tile_task_worker_pool.h
+++ b/cc/raster/tile_task_worker_pool.h
@@ -7,6 +7,7 @@
#include <stddef.h>
+#include "cc/playback/raster_source.h"
#include "cc/raster/tile_task_runner.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"
@@ -16,7 +17,6 @@ class SequencedTaskRunner;
}
namespace cc {
-class RasterSource;
class RenderingStatsInstrumentation;
class CC_EXPORT TileTaskWorkerPool {
@@ -35,15 +35,16 @@ class CC_EXPORT TileTaskWorkerPool {
// 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,
- size_t stride,
- const RasterSource* raster_source,
- const gfx::Rect& canvas_bitmap_rect,
- const gfx::Rect& canvas_playback_rect,
- float scale,
- bool include_images);
+ static void PlaybackToMemory(
+ void* memory,
+ ResourceFormat format,
+ const gfx::Size& size,
+ size_t stride,
+ const RasterSource* raster_source,
+ const gfx::Rect& canvas_bitmap_rect,
+ const gfx::Rect& canvas_playback_rect,
+ float scale,
+ const RasterSource::PlaybackSettings& playback_settings);
// Type-checking downcast routine.
virtual TileTaskRunner* AsTileTaskRunner() = 0;
« no previous file with comments | « cc/raster/raster_buffer.h ('k') | cc/raster/tile_task_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698