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

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

Issue 628443002: replace OVERRIDE and FINAL with override and final in cc/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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.h ('k') | cc/test/fake_picture_layer_tiling_client.h » ('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 16 matching lines...) Expand all
27 static scoped_ptr<FakePictureLayerImpl> CreateWithPartialPile( 27 static scoped_ptr<FakePictureLayerImpl> CreateWithPartialPile(
28 LayerTreeImpl* tree_impl, 28 LayerTreeImpl* tree_impl,
29 int id, 29 int id,
30 scoped_refptr<PicturePileImpl> pile, 30 scoped_refptr<PicturePileImpl> pile,
31 const gfx::Size& layer_bounds) { 31 const gfx::Size& layer_bounds) {
32 return make_scoped_ptr( 32 return make_scoped_ptr(
33 new FakePictureLayerImpl(tree_impl, id, pile, layer_bounds)); 33 new FakePictureLayerImpl(tree_impl, id, pile, layer_bounds));
34 } 34 }
35 35
36 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) 36 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl)
37 OVERRIDE; 37 override;
38 virtual void AppendQuads(RenderPass* render_pass, 38 virtual void AppendQuads(RenderPass* render_pass,
39 const OcclusionTracker<LayerImpl>& occlusion_tracker, 39 const OcclusionTracker<LayerImpl>& occlusion_tracker,
40 AppendQuadsData* append_quads_data) OVERRIDE; 40 AppendQuadsData* append_quads_data) override;
41 virtual gfx::Size CalculateTileSize( 41 virtual gfx::Size CalculateTileSize(
42 const gfx::Size& content_bounds) const OVERRIDE; 42 const gfx::Size& content_bounds) const override;
43 43
44 virtual void DidBecomeActive() OVERRIDE; 44 virtual void DidBecomeActive() override;
45 size_t did_become_active_call_count() { 45 size_t did_become_active_call_count() {
46 return did_become_active_call_count_; 46 return did_become_active_call_count_;
47 } 47 }
48 48
49 virtual bool HasValidTilePriorities() const OVERRIDE; 49 virtual bool HasValidTilePriorities() const override;
50 void set_has_valid_tile_priorities(bool has_valid_priorities) { 50 void set_has_valid_tile_priorities(bool has_valid_priorities) {
51 has_valid_tile_priorities_ = has_valid_priorities; 51 has_valid_tile_priorities_ = has_valid_priorities;
52 use_set_valid_tile_priorities_flag_ = true; 52 use_set_valid_tile_priorities_flag_ = true;
53 } 53 }
54 54
55 using PictureLayerImpl::AddTiling; 55 using PictureLayerImpl::AddTiling;
56 using PictureLayerImpl::CleanUpTilingsOnActiveLayer; 56 using PictureLayerImpl::CleanUpTilingsOnActiveLayer;
57 using PictureLayerImpl::CanHaveTilings; 57 using PictureLayerImpl::CanHaveTilings;
58 using PictureLayerImpl::MarkVisibleResourcesAsRequired; 58 using PictureLayerImpl::MarkVisibleResourcesAsRequired;
59 using PictureLayerImpl::DoPostCommitInitializationIfNeeded; 59 using PictureLayerImpl::DoPostCommitInitializationIfNeeded;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 void SetAllTilesVisible(); 108 void SetAllTilesVisible();
109 void SetAllTilesReady(); 109 void SetAllTilesReady();
110 void SetAllTilesReadyInTiling(PictureLayerTiling* tiling); 110 void SetAllTilesReadyInTiling(PictureLayerTiling* tiling);
111 void SetTileReady(Tile* tile); 111 void SetTileReady(Tile* tile);
112 void ResetAllTilesPriorities(); 112 void ResetAllTilesPriorities();
113 PictureLayerTilingSet* GetTilings() { return tilings_.get(); } 113 PictureLayerTilingSet* GetTilings() { return tilings_.get(); }
114 114
115 size_t release_resources_count() const { return release_resources_count_; } 115 size_t release_resources_count() const { return release_resources_count_; }
116 void reset_release_resources_count() { release_resources_count_ = 0; } 116 void reset_release_resources_count() { release_resources_count_ = 0; }
117 117
118 virtual void ReleaseResources() OVERRIDE; 118 virtual void ReleaseResources() override;
119 119
120 protected: 120 protected:
121 FakePictureLayerImpl( 121 FakePictureLayerImpl(
122 LayerTreeImpl* tree_impl, 122 LayerTreeImpl* tree_impl,
123 int id, 123 int id,
124 scoped_refptr<PicturePileImpl> pile); 124 scoped_refptr<PicturePileImpl> pile);
125 FakePictureLayerImpl(LayerTreeImpl* tree_impl, 125 FakePictureLayerImpl(LayerTreeImpl* tree_impl,
126 int id, 126 int id,
127 scoped_refptr<PicturePileImpl> pile, 127 scoped_refptr<PicturePileImpl> pile,
128 const gfx::Size& layer_bounds); 128 const gfx::Size& layer_bounds);
129 FakePictureLayerImpl(LayerTreeImpl* tree_impl, int id); 129 FakePictureLayerImpl(LayerTreeImpl* tree_impl, int id);
130 130
131 private: 131 private:
132 gfx::Size fixed_tile_size_; 132 gfx::Size fixed_tile_size_;
133 133
134 size_t append_quads_count_; 134 size_t append_quads_count_;
135 size_t did_become_active_call_count_; 135 size_t did_become_active_call_count_;
136 bool has_valid_tile_priorities_; 136 bool has_valid_tile_priorities_;
137 bool use_set_valid_tile_priorities_flag_; 137 bool use_set_valid_tile_priorities_flag_;
138 size_t release_resources_count_; 138 size_t release_resources_count_;
139 }; 139 };
140 140
141 } // namespace cc 141 } // namespace cc
142 142
143 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ 143 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/fake_picture_layer.h ('k') | cc/test/fake_picture_layer_tiling_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698