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

Unified Diff: cc/test/fake_content_layer.h

Issue 85143002: Dirty rects always contain full tiles with delegated rendering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed broken test due to this patch Created 7 years 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
Index: cc/test/fake_content_layer.h
diff --git a/cc/test/fake_content_layer.h b/cc/test/fake_content_layer.h
index 35344a7a71618509f9a9df24546a22ed695dd1aa..078044f218b1ecedbce90c234c3ffe9bc0a809ce 100644
--- a/cc/test/fake_content_layer.h
+++ b/cc/test/fake_content_layer.h
@@ -7,9 +7,15 @@
#include "base/memory/scoped_ptr.h"
#include "cc/layers/content_layer.h"
+#include "cc/resources/content_layer_updater.h"
namespace cc {
+class FakeContentLayerUpdater : public ContentLayerUpdater {
+ public:
+ gfx::Rect content_rect() const OVERRIDE;
danakj 2013/12/02 15:06:52 you can just do "using ContentLayerUpdater::conten
+};
+
class FakeContentLayer : public ContentLayer {
public:
static scoped_refptr<FakeContentLayer> Create(ContentLayerClient* client) {
@@ -25,6 +31,8 @@ class FakeContentLayer : public ContentLayer {
size_t push_properties_count() const { return push_properties_count_; }
void reset_push_properties_count() { push_properties_count_ = 0; }
+ virtual FakeContentLayerUpdater* Updater() const;
danakj 2013/12/02 15:06:52 How about instead, make this LastPaintRect(), and
+
virtual bool Update(
ResourceUpdateQueue* queue,
const OcclusionTracker* occlusion) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698