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

Side by Side Diff: cc/layers/picture_layer.cc

Issue 1047413003: Revert of Implement DisplayList GatherPixelRefs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/output/renderer_pixeltest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/layers/picture_layer.h" 5 #include "cc/layers/picture_layer.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "cc/layers/content_layer_client.h" 8 #include "cc/layers/content_layer_client.h"
9 #include "cc/layers/picture_layer_impl.h" 9 #include "cc/layers/picture_layer_impl.h"
10 #include "cc/resources/display_list_recording_source.h" 10 #include "cc/resources/display_list_recording_source.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 DCHECK(recording_invalidation_.IsEmpty()); 80 DCHECK(recording_invalidation_.IsEmpty());
81 } 81 }
82 82
83 void PictureLayer::SetLayerTreeHost(LayerTreeHost* host) { 83 void PictureLayer::SetLayerTreeHost(LayerTreeHost* host) {
84 Layer::SetLayerTreeHost(host); 84 Layer::SetLayerTreeHost(host);
85 if (!host) 85 if (!host)
86 return; 86 return;
87 87
88 if (!recording_source_) { 88 if (!recording_source_) {
89 if (host->settings().use_display_lists) { 89 if (host->settings().use_display_lists) {
90 recording_source_.reset(new DisplayListRecordingSource( 90 recording_source_.reset(new DisplayListRecordingSource);
91 host->settings().default_tile_grid_size));
92 } else { 91 } else {
93 recording_source_.reset( 92 recording_source_.reset(
94 new PicturePile(host->settings().minimum_contents_scale, 93 new PicturePile(host->settings().minimum_contents_scale,
95 host->settings().default_tile_grid_size)); 94 host->settings().default_tile_grid_size));
96 } 95 }
97 } 96 }
98 recording_source_->DidMoveToNewCompositor(); 97 recording_source_->DidMoveToNewCompositor();
99 recording_source_->SetSlowdownRasterScaleFactor( 98 recording_source_->SetSlowdownRasterScaleFactor(
100 host->debug_state().slow_down_raster_scale_factor); 99 host->debug_state().slow_down_raster_scale_factor);
101 recording_source_->SetGatherPixelRefs(host->settings().gather_pixel_refs); 100 recording_source_->SetGatherPixelRefs(host->settings().gather_pixel_refs);
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 210
212 bool PictureLayer::HasDrawableContent() const { 211 bool PictureLayer::HasDrawableContent() const {
213 return client_ && Layer::HasDrawableContent(); 212 return client_ && Layer::HasDrawableContent();
214 } 213 }
215 214
216 void PictureLayer::RunMicroBenchmark(MicroBenchmark* benchmark) { 215 void PictureLayer::RunMicroBenchmark(MicroBenchmark* benchmark) {
217 benchmark->RunOnLayer(this); 216 benchmark->RunOnLayer(this);
218 } 217 }
219 218
220 } // namespace cc 219 } // namespace cc
OLDNEW
« 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