diff options
author | clholgat@chromium.org <clholgat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-28 00:02:14 +0000 |
---|---|---|
committer | clholgat@chromium.org <clholgat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-28 00:02:14 +0000 |
commit | d35e432f75be8844e31b111817362b3740de8f3e (patch) | |
tree | 83dbab2c5344c6cd3f4f3340c0c35d1137e4d7f0 /cc/test/render_pass_test_utils.h | |
parent | b13f73e498961e56096b42080592034b4c5a1128 (diff) | |
download | chromium_src-d35e432f75be8844e31b111817362b3740de8f3e.zip chromium_src-d35e432f75be8844e31b111817362b3740de8f3e.tar.gz chromium_src-d35e432f75be8844e31b111817362b3740de8f3e.tar.bz2 |
Optimize SkColorFilters when drawing RenderPassQuads
Pull the color transformation matrix from the SkImageFilter if possible
and apply with a shader. Handles all permutations of shaders.
BUG=168719
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=190786
Review URL: https://chromiumcodereview.appspot.com/12803003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191067 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/render_pass_test_utils.h')
-rw-r--r-- | cc/test/render_pass_test_utils.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cc/test/render_pass_test_utils.h b/cc/test/render_pass_test_utils.h index 83e5d90..fdc6366 100644 --- a/cc/test/render_pass_test_utils.h +++ b/cc/test/render_pass_test_utils.h @@ -7,6 +7,7 @@ #include "cc/base/scoped_ptr_vector.h" #include "cc/quads/render_pass.h" +#include "cc/resources/resource_provider.h" #include "third_party/skia/include/core/SkColor.h" namespace gfx { @@ -41,6 +42,13 @@ SolidColorDrawQuad* AddClippedQuad(TestRenderPass* pass, void AddRenderPassQuad(TestRenderPass* to_pass, TestRenderPass* contributing_pass); +// Adds a render pass quad with the given mask resource, filter, and transform. +void AddRenderPassQuad(TestRenderPass* toPass, + TestRenderPass* contributingPass, + ResourceProvider::ResourceId mask_resource_id, + skia::RefPtr<SkImageFilter> filter, + gfx::Transform transform); + } // namespace cc #endif // CC_TEST_RENDER_PASS_TEST_UTILS_H_ |