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

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

Issue 441863002: cc: Make sure mask and replica layers get DidBecomeActive signal. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: +test Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 23 matching lines...) Expand all
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;
45 size_t get_did_become_active_call_count() {
danakj 2014/08/05 17:16:47 inline accessor methods should match the variable
vmpstr 2014/08/05 18:54:33 Done.
46 return did_become_active_call_count_;
47 }
48
44 using PictureLayerImpl::AddTiling; 49 using PictureLayerImpl::AddTiling;
45 using PictureLayerImpl::CleanUpTilingsOnActiveLayer; 50 using PictureLayerImpl::CleanUpTilingsOnActiveLayer;
46 using PictureLayerImpl::CanHaveTilings; 51 using PictureLayerImpl::CanHaveTilings;
47 using PictureLayerImpl::MarkVisibleResourcesAsRequired; 52 using PictureLayerImpl::MarkVisibleResourcesAsRequired;
48 using PictureLayerImpl::DoPostCommitInitializationIfNeeded; 53 using PictureLayerImpl::DoPostCommitInitializationIfNeeded;
49 using PictureLayerImpl::MinimumContentsScale; 54 using PictureLayerImpl::MinimumContentsScale;
50 using PictureLayerImpl::SanityCheckTilingState; 55 using PictureLayerImpl::SanityCheckTilingState;
51 56
52 using PictureLayerImpl::UpdateIdealScales; 57 using PictureLayerImpl::UpdateIdealScales;
53 using PictureLayerImpl::MaximumTilingContentsScale; 58 using PictureLayerImpl::MaximumTilingContentsScale;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 FakePictureLayerImpl(LayerTreeImpl* tree_impl, 108 FakePictureLayerImpl(LayerTreeImpl* tree_impl,
104 int id, 109 int id,
105 scoped_refptr<PicturePileImpl> pile, 110 scoped_refptr<PicturePileImpl> pile,
106 const gfx::Size& layer_bounds); 111 const gfx::Size& layer_bounds);
107 FakePictureLayerImpl(LayerTreeImpl* tree_impl, int id); 112 FakePictureLayerImpl(LayerTreeImpl* tree_impl, int id);
108 113
109 private: 114 private:
110 gfx::Size fixed_tile_size_; 115 gfx::Size fixed_tile_size_;
111 116
112 size_t append_quads_count_; 117 size_t append_quads_count_;
118 size_t did_become_active_call_count_;
113 }; 119 };
114 120
115 } // namespace cc 121 } // namespace cc
116 122
117 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ 123 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/test/fake_picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698