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/gpu_rasterizer.cc

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/gpu_rasterizer.h ('k') | cc/raster/gpu_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/gpu_rasterizer.cc
diff --git a/cc/raster/gpu_rasterizer.cc b/cc/raster/gpu_rasterizer.cc
index 498030d571f40dbf7b7df48cad3c2cb0cd4e2750..f6e0288f5ddbe30d9712b06eb9d292579ff8916c 100644
--- a/cc/raster/gpu_rasterizer.cc
+++ b/cc/raster/gpu_rasterizer.cc
@@ -43,7 +43,8 @@ void GpuRasterizer::RasterizeSource(
const RasterSource* raster_source,
const gfx::Rect& raster_full_rect,
const gfx::Rect& playback_rect,
- float scale) {
+ float scale,
+ const RasterSource::PlaybackSettings& playback_settings) {
// Play back raster_source into temp SkPicture.
SkPictureRecorder recorder;
const gfx::Size size = write_lock->GetResourceSize();
@@ -51,9 +52,8 @@ void GpuRasterizer::RasterizeSource(
skia::RefPtr<SkCanvas> canvas = skia::SharePtr(
recorder.beginRecording(size.width(), size.height(), NULL, flags));
canvas->save();
- const bool include_images = true;
raster_source->PlaybackToCanvas(canvas.get(), raster_full_rect, playback_rect,
- scale, include_images);
+ scale, playback_settings);
canvas->restore();
sk_sp<SkPicture> picture = recorder.finishRecordingAsPicture();
« no previous file with comments | « cc/raster/gpu_rasterizer.h ('k') | cc/raster/gpu_tile_task_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698