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

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

Issue 308193003: Removed QuadSink and MockQuadCuller (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@plumLayerImpl
Patch Set: rm unused line Created 6 years, 6 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
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 21 matching lines...) Expand all
32 32
33 FakePictureLayerImpl::FakePictureLayerImpl(LayerTreeImpl* tree_impl, int id) 33 FakePictureLayerImpl::FakePictureLayerImpl(LayerTreeImpl* tree_impl, int id)
34 : PictureLayerImpl(tree_impl, id), append_quads_count_(0) {} 34 : PictureLayerImpl(tree_impl, id), append_quads_count_(0) {}
35 35
36 scoped_ptr<LayerImpl> FakePictureLayerImpl::CreateLayerImpl( 36 scoped_ptr<LayerImpl> FakePictureLayerImpl::CreateLayerImpl(
37 LayerTreeImpl* tree_impl) { 37 LayerTreeImpl* tree_impl) {
38 return make_scoped_ptr( 38 return make_scoped_ptr(
39 new FakePictureLayerImpl(tree_impl, id())).PassAs<LayerImpl>(); 39 new FakePictureLayerImpl(tree_impl, id())).PassAs<LayerImpl>();
40 } 40 }
41 41
42 void FakePictureLayerImpl::AppendQuads(QuadSink* quad_sink, 42 void FakePictureLayerImpl::AppendQuads(
43 AppendQuadsData* append_quads_data) { 43 RenderPass* render_pass,
44 PictureLayerImpl::AppendQuads(quad_sink, append_quads_data); 44 const OcclusionTracker<LayerImpl>& occlusion_tracker,
45 AppendQuadsData* append_quads_data) {
46 PictureLayerImpl::AppendQuads(
47 render_pass, occlusion_tracker, append_quads_data);
45 ++append_quads_count_; 48 ++append_quads_count_;
46 } 49 }
47 50
48 gfx::Size FakePictureLayerImpl::CalculateTileSize( 51 gfx::Size FakePictureLayerImpl::CalculateTileSize(
49 const gfx::Size& content_bounds) const { 52 const gfx::Size& content_bounds) const {
50 if (fixed_tile_size_.IsEmpty()) { 53 if (fixed_tile_size_.IsEmpty()) {
51 return PictureLayerImpl::CalculateTileSize(content_bounds); 54 return PictureLayerImpl::CalculateTileSize(content_bounds);
52 } 55 }
53 56
54 return fixed_tile_size_; 57 return fixed_tile_size_;
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 DCHECK_EQ(tilings()->tiling_at(0)->resolution(), HIGH_RESOLUTION); 143 DCHECK_EQ(tilings()->tiling_at(0)->resolution(), HIGH_RESOLUTION);
141 DCHECK_EQ(tilings()->tiling_at(1)->resolution(), LOW_RESOLUTION); 144 DCHECK_EQ(tilings()->tiling_at(1)->resolution(), LOW_RESOLUTION);
142 HighResTiling()->CreateAllTilesForTesting(); 145 HighResTiling()->CreateAllTilesForTesting();
143 LowResTiling()->CreateAllTilesForTesting(); 146 LowResTiling()->CreateAllTilesForTesting();
144 } else { 147 } else {
145 DCHECK_EQ(tilings()->num_tilings(), 0u); 148 DCHECK_EQ(tilings()->num_tilings(), 0u);
146 } 149 }
147 } 150 }
148 151
149 } // namespace cc 152 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698