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

Unified Diff: cc/test/fake_picture_pile.h

Issue 671653005: SetNeedsRedraw directly when updating a visible tile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pinchblurmerge-test: testfix Created 6 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
Index: cc/test/fake_picture_pile.h
diff --git a/cc/test/fake_picture_pile.h b/cc/test/fake_picture_pile.h
new file mode 100644
index 0000000000000000000000000000000000000000..de8165f096f8291c0b5c7a5ccc4ec04293161dea
--- /dev/null
+++ b/cc/test/fake_picture_pile.h
@@ -0,0 +1,28 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_TEST_FAKE_PICTURE_PILE_H_
+#define CC_TEST_FAKE_PICTURE_PILE_H_
+
+#include "cc/resources/picture_pile.h"
+
+namespace cc {
+class ThreadBlocker;
+
+class FakePicturePile : public PicturePile {
+ public:
+ explicit FakePicturePile(ThreadBlocker* blocker)
+ : raster_thread_blocker_(blocker) {}
+ virtual ~FakePicturePile() {}
+
+ // PicturePile overrides.
+ scoped_refptr<RasterSource> CreateRasterSource() const override;
+
+ private:
+ ThreadBlocker* raster_thread_blocker_;
+};
+
+} // namespace cc
+
+#endif // CC_TEST_FAKE_PICTURE_PILE_H_

Powered by Google App Engine
This is Rietveld 408576698