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

Unified Diff: cc/test/fake_picture_layer_impl.cc

Issue 441863002: cc: Make sure mask and replica layers get DidBecomeActive signal. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/fake_picture_layer_impl.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_picture_layer_impl.cc
diff --git a/cc/test/fake_picture_layer_impl.cc b/cc/test/fake_picture_layer_impl.cc
index a44c6cd77deeae1f34702e7e653112a97f16e248..d98a408b075d4bdc08b990aea67130db2aaeab5b 100644
--- a/cc/test/fake_picture_layer_impl.cc
+++ b/cc/test/fake_picture_layer_impl.cc
@@ -10,12 +10,12 @@
namespace cc {
-FakePictureLayerImpl::FakePictureLayerImpl(
- LayerTreeImpl* tree_impl,
- int id,
- scoped_refptr<PicturePileImpl> pile)
+FakePictureLayerImpl::FakePictureLayerImpl(LayerTreeImpl* tree_impl,
+ int id,
+ scoped_refptr<PicturePileImpl> pile)
: PictureLayerImpl(tree_impl, id),
- append_quads_count_(0) {
+ append_quads_count_(0),
+ did_become_active_call_count_(0) {
pile_ = pile;
SetBounds(pile_->tiling_size());
SetContentBounds(pile_->tiling_size());
@@ -25,14 +25,19 @@ FakePictureLayerImpl::FakePictureLayerImpl(LayerTreeImpl* tree_impl,
int id,
scoped_refptr<PicturePileImpl> pile,
const gfx::Size& layer_bounds)
- : PictureLayerImpl(tree_impl, id), append_quads_count_(0) {
+ : PictureLayerImpl(tree_impl, id),
+ append_quads_count_(0),
+ did_become_active_call_count_(0) {
pile_ = pile;
SetBounds(layer_bounds);
SetContentBounds(layer_bounds);
}
FakePictureLayerImpl::FakePictureLayerImpl(LayerTreeImpl* tree_impl, int id)
- : PictureLayerImpl(tree_impl, id), append_quads_count_(0) {}
+ : PictureLayerImpl(tree_impl, id),
+ append_quads_count_(0),
+ did_become_active_call_count_(0) {
+}
scoped_ptr<LayerImpl> FakePictureLayerImpl::CreateLayerImpl(
LayerTreeImpl* tree_impl) {
@@ -153,4 +158,9 @@ void FakePictureLayerImpl::CreateDefaultTilingsAndTiles() {
}
}
+void FakePictureLayerImpl::DidBecomeActive() {
+ PictureLayerImpl::DidBecomeActive();
+ ++did_become_active_call_count_;
+}
+
} // namespace cc
« no previous file with comments | « cc/test/fake_picture_layer_impl.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698