summaryrefslogtreecommitdiffstats
path: root/cc/test/layer_tree_pixel_test.h
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-30 06:44:50 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-30 06:44:50 +0000
commit15590d6b4b64fc543cf879cf4c72a77a92dafc84 (patch)
tree14deea7492e2b3e551c72f900bcac3e5b5a4c1ba /cc/test/layer_tree_pixel_test.h
parent813a413070abe982418b245e70ed76ff029a4fab (diff)
downloadchromium_src-15590d6b4b64fc543cf879cf4c72a77a92dafc84.zip
chromium_src-15590d6b4b64fc543cf879cf4c72a77a92dafc84.tar.gz
chromium_src-15590d6b4b64fc543cf879cf4c72a77a92dafc84.tar.bz2
cc: Add remaining pixel tests for background blur.
This replicates the following layout tests with compositor pixel tests: platform/chromium/compositing/filters/background-filter-blur-outsets.html platform/chromium/compositing/filters/background-filter-blur-off-axis.html The first test verifies that pixels from outside the bounds of the layer with background blur are used to contribute to the background behind the blurred layer. The second test verifies that the blur layer's transform does not affect the rendering of the blurred content behind it. New test: LayerTreeHostFiltersPixelTest.BackgroundFilterBlurOutsets LayerTreeHostFiltersPixelTest.BackgroundFilterBlurOffAxis R=jamesr,enne BUG=191170 Depends on: https://codereview.chromium.org/12518026/ Review URL: https://chromiumcodereview.appspot.com/12571010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191494 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/layer_tree_pixel_test.h')
-rw-r--r--cc/test/layer_tree_pixel_test.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/cc/test/layer_tree_pixel_test.h b/cc/test/layer_tree_pixel_test.h
index e5f049a..ceddfab 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_;