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

Unified Diff: cc/test/pixel_test.h

Issue 14060015: cc: Async readback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 7 years, 8 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
Index: cc/test/pixel_test.h
diff --git a/cc/test/pixel_test.h b/cc/test/pixel_test.h
index e915961097335a1c9d0b97ff86ef6098d45d4f03..b3d8338e263deb2266e7e14e107b37ff2470606e 100644
--- a/cc/test/pixel_test.h
+++ b/cc/test/pixel_test.h
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "base/file_util.h"
+#include "cc/quads/render_pass.h"
#include "cc/test/pixel_comparator.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/size.h"
@@ -22,6 +23,12 @@ class PixelTest : public testing::Test {
virtual void SetUp() OVERRIDE;
+ bool RunPixelTest(RenderPassList* pass_list,
+ const base::FilePath& ref_file,
+ const PixelComparator& comparator);
+
+ void ReadbackResult(scoped_ptr<SkBitmap> bitmap);
+
bool PixelsMatchReference(const base::FilePath& ref_file,
const PixelComparator& comparator);
@@ -31,6 +38,7 @@ class PixelTest : public testing::Test {
class PixelTestRendererClient;
scoped_ptr<PixelTestRendererClient> fake_client_;
scoped_ptr<GLRenderer> renderer_;
+ scoped_ptr<SkBitmap> result_bitmap_;
};
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698