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

Unified Diff: cc/resources/gpu_rasterizer.cc

Issue 797793005: Add rTree factory to beginRecording call in RasterBufferImpl ctor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: the beginRecording call has moved to gpu_rasterizer.cc Created 5 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/gpu_rasterizer.cc
diff --git a/cc/resources/gpu_rasterizer.cc b/cc/resources/gpu_rasterizer.cc
index e3d165dcb53e187567e7eb009002f16d0fd4c26a..fe1025c11494638796ed59056395cfa3fe8ea2ee 100644
--- a/cc/resources/gpu_rasterizer.cc
+++ b/cc/resources/gpu_rasterizer.cc
@@ -128,11 +128,12 @@ void GpuRasterizer::AddToMultiPictureDraw(const Tile* tile,
if (!sk_surface)
return;
+ SkRTreeFactory factory;
SkPictureRecorder recorder;
gfx::Size size = resource->size();
const int flags = SkPictureRecorder::kComputeSaveLayerInfo_RecordFlag;
skia::RefPtr<SkCanvas> canvas = skia::SharePtr(
- recorder.beginRecording(size.width(), size.height(), NULL, flags));
+ recorder.beginRecording(size.width(), size.height(), &factory, flags));
canvas->save();
tile->raster_source()->PlaybackToCanvas(canvas.get(), tile->content_rect(),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698