diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-26 23:04:50 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-26 23:04:50 +0000 |
commit | b562a2f2c59d1f9fc85bb501b81f3396b2f9ed4a (patch) | |
tree | e6d40603ec997e4b9ee21c6f6970540d7c771a82 /cc/test/render_pass_test_utils.cc | |
parent | 09ca0cc9b1c724aedc71447b6d09ada52f25d311 (diff) | |
download | chromium_src-b562a2f2c59d1f9fc85bb501b81f3396b2f9ed4a.zip chromium_src-b562a2f2c59d1f9fc85bb501b81f3396b2f9ed4a.tar.gz chromium_src-b562a2f2c59d1f9fc85bb501b81f3396b2f9ed4a.tar.bz2 |
Revert 190786 "Optimize SkColorFilters when drawing RenderPassQuads"
> 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
>
>
> Review URL: https://chromiumcodereview.appspot.com/12803003
TBR=clholgat@chromium.org
Review URL: https://codereview.chromium.org/13101002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190791 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/render_pass_test_utils.cc')
-rw-r--r-- | cc/test/render_pass_test_utils.cc | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/cc/test/render_pass_test_utils.cc b/cc/test/render_pass_test_utils.cc index 24cb778..94d0f64 100644 --- a/cc/test/render_pass_test_utils.cc +++ b/cc/test/render_pass_test_utils.cc @@ -9,7 +9,6 @@ #include "cc/quads/render_pass_draw_quad.h" #include "cc/quads/shared_quad_state.h" #include "cc/quads/solid_color_draw_quad.h" -#include "cc/resources/resource_provider.h" #include "cc/test/mock_quad_culler.h" #include "cc/test/render_pass_test_common.h" #include "ui/gfx/rect.h" @@ -74,25 +73,4 @@ void AddRenderPassQuad(TestRenderPass* to_pass, quad_sink.Append(quad.PassAs<DrawQuad>(), &data); } -void AddRenderPassQuad(TestRenderPass* to_pass, - TestRenderPass* contributing_pass, - ResourceProvider::ResourceId mask_resource_id, - skia::RefPtr<SkImageFilter> filter, - gfx::Transform transform) { - MockQuadCuller quad_sink(&to_pass->quad_list, - &to_pass->shared_quad_state_list); - AppendQuadsData data(to_pass->id); - gfx::Rect output_rect = contributing_pass->output_rect; - SharedQuadState* shared_state = - quad_sink.UseSharedQuadState(SharedQuadState::Create()); - shared_state->SetAll( - transform, output_rect.size(), output_rect, output_rect, false, 1); - scoped_ptr<RenderPassDrawQuad> quad = RenderPassDrawQuad::Create(); - quad->SetNew(shared_state, output_rect, contributing_pass->id, false, - mask_resource_id, output_rect, gfx::RectF(), - WebKit::WebFilterOperations(), - filter, WebKit::WebFilterOperations()); - quad_sink.Append(quad.PassAs<DrawQuad>(), &data); -} - } // namespace cc |