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

Side by Side Diff: cc/test/fake_picture_layer_impl.cc

Issue 927783002: cc: Stop passing the occlusion explicitly to AppendQuads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/test/fake_picture_layer_impl.h ('k') | cc/test/layer_test_common.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/test/fake_picture_layer_impl.h" 5 #include "cc/test/fake_picture_layer_impl.h"
6 6
7 #include <vector> 7 #include <vector>
8 #include "cc/resources/tile.h" 8 #include "cc/resources/tile.h"
9 #include "cc/trees/layer_tree_impl.h" 9 #include "cc/trees/layer_tree_impl.h"
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 void FakePictureLayerImpl::PushPropertiesTo(LayerImpl* layer_impl) { 80 void FakePictureLayerImpl::PushPropertiesTo(LayerImpl* layer_impl) {
81 FakePictureLayerImpl* picture_layer_impl = 81 FakePictureLayerImpl* picture_layer_impl =
82 static_cast<FakePictureLayerImpl*>(layer_impl); 82 static_cast<FakePictureLayerImpl*>(layer_impl);
83 picture_layer_impl->fixed_tile_size_ = fixed_tile_size_; 83 picture_layer_impl->fixed_tile_size_ = fixed_tile_size_;
84 PictureLayerImpl::PushPropertiesTo(layer_impl); 84 PictureLayerImpl::PushPropertiesTo(layer_impl);
85 } 85 }
86 86
87 void FakePictureLayerImpl::AppendQuads( 87 void FakePictureLayerImpl::AppendQuads(
88 RenderPass* render_pass, 88 RenderPass* render_pass,
89 const Occlusion& occlusion_in_content_space,
90 AppendQuadsData* append_quads_data) { 89 AppendQuadsData* append_quads_data) {
91 PictureLayerImpl::AppendQuads( 90 PictureLayerImpl::AppendQuads(render_pass, append_quads_data);
92 render_pass, occlusion_in_content_space, append_quads_data);
93 ++append_quads_count_; 91 ++append_quads_count_;
94 } 92 }
95 93
96 gfx::Size FakePictureLayerImpl::CalculateTileSize( 94 gfx::Size FakePictureLayerImpl::CalculateTileSize(
97 const gfx::Size& content_bounds) const { 95 const gfx::Size& content_bounds) const {
98 if (fixed_tile_size_.IsEmpty()) { 96 if (fixed_tile_size_.IsEmpty()) {
99 return PictureLayerImpl::CalculateTileSize(content_bounds); 97 return PictureLayerImpl::CalculateTileSize(content_bounds);
100 } 98 }
101 99
102 return fixed_tile_size_; 100 return fixed_tile_size_;
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 return CountTilesRequired( 270 return CountTilesRequired(
273 &PictureLayerTiling::IsTileRequiredForDrawIfVisible); 271 &PictureLayerTiling::IsTileRequiredForDrawIfVisible);
274 } 272 }
275 273
276 void FakePictureLayerImpl::ReleaseResources() { 274 void FakePictureLayerImpl::ReleaseResources() {
277 PictureLayerImpl::ReleaseResources(); 275 PictureLayerImpl::ReleaseResources();
278 ++release_resources_count_; 276 ++release_resources_count_;
279 } 277 }
280 278
281 } // namespace cc 279 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_picture_layer_impl.h ('k') | cc/test/layer_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698