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

Unified Diff: cc/layers/picture_layer.cc

Issue 1045953002: Implement DisplayList GatherPixelRefs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix crash w/ unittest Created 5 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/cc_tests.gyp ('k') | cc/output/renderer_pixeltest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer.cc
diff --git a/cc/layers/picture_layer.cc b/cc/layers/picture_layer.cc
index 5988bdf8079ee186eaf81eb28758d1debb047825..2234e2c0978d80157d68d4b1ade355b65619354b 100644
--- a/cc/layers/picture_layer.cc
+++ b/cc/layers/picture_layer.cc
@@ -87,7 +87,8 @@ void PictureLayer::SetLayerTreeHost(LayerTreeHost* host) {
if (!recording_source_) {
if (host->settings().use_display_lists) {
- recording_source_.reset(new DisplayListRecordingSource);
+ recording_source_.reset(new DisplayListRecordingSource(
+ host->settings().default_tile_grid_size));
} else {
recording_source_.reset(
new PicturePile(host->settings().minimum_contents_scale,
@@ -185,7 +186,8 @@ skia::RefPtr<SkPicture> PictureLayer::GetPicture() const {
if (settings.use_display_lists) {
scoped_ptr<RecordingSource> recording_source;
- recording_source.reset(new DisplayListRecordingSource);
+ recording_source.reset(
+ new DisplayListRecordingSource(settings.default_tile_grid_size));
Region recording_invalidation;
recording_source->UpdateAndExpandInvalidation(
client_, &recording_invalidation, layer_size, gfx::Rect(layer_size),
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/output/renderer_pixeltest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698