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

Unified Diff: cc/test/fake_content_layer.h

Issue 11662003: cc: Put context-loss tests in layer_tree_host_unittest_context.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 80cols Created 7 years, 12 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/scrollbar_layer_unittest.cc ('k') | cc/test/fake_content_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_content_layer.h
diff --git a/cc/test/fake_content_layer.h b/cc/test/fake_content_layer.h
index 7defe6a664e537a90ed5fb4b28c92306358ca72a..94b1266713bab6b8362895d09d2dc707da030de7 100644
--- a/cc/test/fake_content_layer.h
+++ b/cc/test/fake_content_layer.h
@@ -11,12 +11,15 @@
namespace cc {
class FakeContentLayer : public ContentLayer {
-public:
+ public:
static scoped_refptr<FakeContentLayer> Create(ContentLayerClient* client) {
return make_scoped_refptr(new FakeContentLayer(client));
}
- int update_count() { return update_count_; }
+ virtual scoped_ptr<LayerImpl> createLayerImpl(LayerTreeImpl* tree_impl)
+ OVERRIDE;
+
+ size_t update_count() const { return update_count_; }
void reset_update_count() { update_count_ = 0; }
virtual void update(
@@ -24,11 +27,13 @@ public:
const OcclusionTracker* occlusion,
RenderingStats& stats) OVERRIDE;
-private:
+ bool HaveBackingAt(int i, int j);
+
+ private:
explicit FakeContentLayer(ContentLayerClient* client);
virtual ~FakeContentLayer();
- int update_count_;
+ size_t update_count_;
};
} // namespace cc
« no previous file with comments | « cc/scrollbar_layer_unittest.cc ('k') | cc/test/fake_content_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698