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

Unified Diff: cc/test/fake_picture_layer_impl.cc

Issue 26112002: cc: Fix hit-testing in zero-opacity layers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 1 month 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.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 bdf40a5a2bb45b8534aa210bb09f56b154138302..a65db0dbe492dfc2fccad6f857c44569c1810942 100644
--- a/cc/test/fake_picture_layer_impl.cc
+++ b/cc/test/fake_picture_layer_impl.cc
@@ -11,13 +11,17 @@ FakePictureLayerImpl::FakePictureLayerImpl(
int id,
scoped_refptr<PicturePileImpl> pile)
: PictureLayerImpl(tree_impl, id),
- append_quads_count_(0) {
+ append_quads_count_(0),
+ update_tile_priorities_count_(0) {
pile_ = pile;
SetBounds(pile_->size());
}
FakePictureLayerImpl::FakePictureLayerImpl(LayerTreeImpl* tree_impl, int id)
- : PictureLayerImpl(tree_impl, id), append_quads_count_(0) {}
+ : PictureLayerImpl(tree_impl, id),
+ append_quads_count_(0),
+ update_tile_priorities_count_(0) {
+}
scoped_ptr<LayerImpl> FakePictureLayerImpl::CreateLayerImpl(
LayerTreeImpl* tree_impl) {
@@ -31,6 +35,11 @@ void FakePictureLayerImpl::AppendQuads(QuadSink* quad_sink,
++append_quads_count_;
}
+void FakePictureLayerImpl::UpdateTilePriorities() {
+ PictureLayerImpl::UpdateTilePriorities();
+ ++update_tile_priorities_count_;
+}
+
gfx::Size FakePictureLayerImpl::CalculateTileSize(
gfx::Size content_bounds) const {
if (fixed_tile_size_.IsEmpty()) {
« no previous file with comments | « cc/test/fake_picture_layer_impl.h ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698