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

Unified Diff: cc/test/layer_tree_pixel_test.h

Issue 12571010: cc: Add a pixel test for background blur outsets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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/output/gl_renderer.cc ('k') | cc/test/layer_tree_pixel_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/layer_tree_pixel_test.h
diff --git a/cc/test/layer_tree_pixel_test.h b/cc/test/layer_tree_pixel_test.h
index e5f049ad95c75d363e81c1b3d5c08af2b2f85cdf..ceddfab81e380e208e65c59f401da92b7cbf0d37 100644
--- a/cc/test/layer_tree_pixel_test.h
+++ b/cc/test/layer_tree_pixel_test.h
@@ -3,6 +3,8 @@
// found in the LICENSE file.
#include "base/files/file_path.h"
+#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
#include "cc/layers/solid_color_layer.h"
#include "cc/test/layer_tree_test.h"
@@ -11,6 +13,7 @@
namespace cc {
class LayerTreeHost;
+class PixelComparator;
class LayerTreePixelTest : public LayerTreeTest {
protected:
@@ -31,6 +34,11 @@ class LayerTreePixelTest : public LayerTreeTest {
scoped_refptr<SolidColorLayer> CreateSolidColorLayer(gfx::Rect rect,
SkColor color);
+ scoped_refptr<SolidColorLayer> CreateSolidColorLayerWithBorder(
+ gfx::Rect rect,
+ SkColor color,
+ int border_width,
+ SkColor border_color);
void RunPixelTest(scoped_refptr<Layer> content_root,
base::FilePath file_name);
@@ -42,6 +50,8 @@ class LayerTreePixelTest : public LayerTreeTest {
kCSSGreen = 0xff008000,
};
+ scoped_ptr<PixelComparator> pixel_comparator_;
+
private:
scoped_refptr<Layer> content_root_;
base::FilePath ref_file_;
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | cc/test/layer_tree_pixel_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698