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

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

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/layers/video_layer_impl.cc ('k') | cc/test/fake_picture_layer_impl.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 #ifndef CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ 5 #ifndef CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_
6 #define CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ 6 #define CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/layers/picture_layer_impl.h" 9 #include "cc/layers/picture_layer_impl.h"
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 int id, 46 int id,
47 scoped_refptr<RasterSource> raster_source) { 47 scoped_refptr<RasterSource> raster_source) {
48 bool is_mask = true; 48 bool is_mask = true;
49 return make_scoped_ptr( 49 return make_scoped_ptr(
50 new FakePictureLayerImpl(tree_impl, id, raster_source, is_mask)); 50 new FakePictureLayerImpl(tree_impl, id, raster_source, is_mask));
51 } 51 }
52 52
53 scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; 53 scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
54 void PushPropertiesTo(LayerImpl* layer_impl) override; 54 void PushPropertiesTo(LayerImpl* layer_impl) override;
55 void AppendQuads(RenderPass* render_pass, 55 void AppendQuads(RenderPass* render_pass,
56 const Occlusion& occlusion_in_content_space,
57 AppendQuadsData* append_quads_data) override; 56 AppendQuadsData* append_quads_data) override;
58 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; 57 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override;
59 58
60 void DidBecomeActive() override; 59 void DidBecomeActive() override;
61 size_t did_become_active_call_count() { 60 size_t did_become_active_call_count() {
62 return did_become_active_call_count_; 61 return did_become_active_call_count_;
63 } 62 }
64 63
65 bool HasValidTilePriorities() const override; 64 bool HasValidTilePriorities() const override;
66 void set_has_valid_tile_priorities(bool has_valid_priorities) { 65 void set_has_valid_tile_priorities(bool has_valid_priorities) {
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 size_t append_quads_count_; 162 size_t append_quads_count_;
164 size_t did_become_active_call_count_; 163 size_t did_become_active_call_count_;
165 bool has_valid_tile_priorities_; 164 bool has_valid_tile_priorities_;
166 bool use_set_valid_tile_priorities_flag_; 165 bool use_set_valid_tile_priorities_flag_;
167 size_t release_resources_count_; 166 size_t release_resources_count_;
168 }; 167 };
169 168
170 } // namespace cc 169 } // namespace cc
171 170
172 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ 171 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/video_layer_impl.cc ('k') | cc/test/fake_picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698