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

Unified Diff: cc/test/pixel_test.h

Issue 14060015: cc: Async readback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
« no previous file with comments | « cc/test/layer_tree_pixel_test.cc ('k') | cc/test/pixel_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/pixel_test.h
diff --git a/cc/test/pixel_test.h b/cc/test/pixel_test.h
index e915961097335a1c9d0b97ff86ef6098d45d4f03..d65214b3b9bfe8893a178ee9ea8dce799562c0ef 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,8 +23,9 @@ class PixelTest : public testing::Test {
virtual void SetUp() OVERRIDE;
- bool PixelsMatchReference(const base::FilePath& ref_file,
- const PixelComparator& comparator);
+ bool RunPixelTest(RenderPassList* pass_list,
+ const base::FilePath& ref_file,
+ const PixelComparator& comparator);
gfx::Size device_viewport_size_;
scoped_ptr<OutputSurface> output_surface_;
@@ -31,6 +33,13 @@ class PixelTest : public testing::Test {
class PixelTestRendererClient;
scoped_ptr<PixelTestRendererClient> fake_client_;
scoped_ptr<GLRenderer> renderer_;
+ scoped_ptr<SkBitmap> result_bitmap_;
+
+ private:
+ void ReadbackResult(scoped_ptr<SkBitmap> bitmap);
+
+ bool PixelsMatchReference(const base::FilePath& ref_file,
+ const PixelComparator& comparator);
};
} // namespace cc
« no previous file with comments | « cc/test/layer_tree_pixel_test.cc ('k') | cc/test/pixel_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698