diff options
author | rosca@adobe.com <rosca@adobe.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-26 10:27:22 +0000 |
---|---|---|
committer | rosca@adobe.com <rosca@adobe.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-26 10:27:22 +0000 |
commit | 7bbeaf4e5b9ad540bf6d3496470778ed74737766 (patch) | |
tree | 63d6549481b2a660eb39e3bfef8e0c42d28b75f1 /cc/test/render_pass_test_utils.cc | |
parent | cc6a5a0804b5138079708e5c2a32081e078af605 (diff) | |
download | chromium_src-7bbeaf4e5b9ad540bf6d3496470778ed74737766.zip chromium_src-7bbeaf4e5b9ad540bf6d3496470778ed74737766.tar.gz chromium_src-7bbeaf4e5b9ad540bf6d3496470778ed74737766.tar.bz2 |
The blink part of this implementation is uploaded at https://codereview.chromium.org/23511004/
The spec for mix-blend-mode is http://dev.w3.org/fxtf/compositing-1/#mix-blend-mode
BUG=243223
Review URL: https://codereview.chromium.org/23455060
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237295 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 | 37 |
1 files changed, 30 insertions, 7 deletions
diff --git a/cc/test/render_pass_test_utils.cc b/cc/test/render_pass_test_utils.cc index b2045d7..32e6f48 100644 --- a/cc/test/render_pass_test_utils.cc +++ b/cc/test/render_pass_test_utils.cc @@ -36,7 +36,13 @@ SolidColorDrawQuad* AddQuad(TestRenderPass* pass, AppendQuadsData data(pass->id); SharedQuadState* shared_state = quad_sink.UseSharedQuadState(SharedQuadState::Create()); - shared_state->SetAll(gfx::Transform(), rect.size(), rect, rect, false, 1); + shared_state->SetAll(gfx::Transform(), + rect.size(), + rect, + rect, + false, + 1, + SkXfermode::kSrcOver_Mode); scoped_ptr<SolidColorDrawQuad> quad = SolidColorDrawQuad::Create(); quad->SetNew(shared_state, rect, color, false); SolidColorDrawQuad* quad_ptr = quad.get(); @@ -51,7 +57,13 @@ SolidColorDrawQuad* AddClippedQuad(TestRenderPass* pass, AppendQuadsData data(pass->id); SharedQuadState* shared_state = quad_sink.UseSharedQuadState(SharedQuadState::Create()); - shared_state->SetAll(gfx::Transform(), rect.size(), rect, rect, true, 1); + shared_state->SetAll(gfx::Transform(), + rect.size(), + rect, + rect, + true, + 1, + SkXfermode::kSrcOver_Mode); scoped_ptr<SolidColorDrawQuad> quad = SolidColorDrawQuad::Create(); quad->SetNew(shared_state, rect, color, false); SolidColorDrawQuad* quad_ptr = quad.get(); @@ -67,7 +79,8 @@ SolidColorDrawQuad* AddTransformedQuad(TestRenderPass* pass, AppendQuadsData data(pass->id); SharedQuadState* shared_state = quad_sink.UseSharedQuadState(SharedQuadState::Create()); - shared_state->SetAll(transform, rect.size(), rect, rect, false, 1); + shared_state->SetAll( + transform, rect.size(), rect, rect, false, 1, SkXfermode::kSrcOver_Mode); scoped_ptr<SolidColorDrawQuad> quad = SolidColorDrawQuad::Create(); quad->SetNew(shared_state, rect, color, false); SolidColorDrawQuad* quad_ptr = quad.get(); @@ -83,8 +96,13 @@ void AddRenderPassQuad(TestRenderPass* to_pass, gfx::Rect output_rect = contributing_pass->output_rect; SharedQuadState* shared_state = quad_sink.UseSharedQuadState(SharedQuadState::Create()); - shared_state->SetAll( - gfx::Transform(), output_rect.size(), output_rect, output_rect, false, 1); + shared_state->SetAll(gfx::Transform(), + output_rect.size(), + output_rect, + output_rect, + false, + 1, + SkXfermode::kSrcOver_Mode); scoped_ptr<RenderPassDrawQuad> quad = RenderPassDrawQuad::Create(); quad->SetNew(shared_state, output_rect, contributing_pass->id, false, 0, output_rect, gfx::RectF(), FilterOperations(), @@ -103,8 +121,13 @@ void AddRenderPassQuad(TestRenderPass* to_pass, 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); + shared_state->SetAll(transform, + output_rect.size(), + output_rect, + output_rect, + false, + 1, + SkXfermode::kSrcOver_Mode); scoped_ptr<RenderPassDrawQuad> quad = RenderPassDrawQuad::Create(); quad->SetNew(shared_state, output_rect, contributing_pass->id, false, mask_resource_id, output_rect, gfx::RectF(), filters, |