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

Unified Diff: cc/test/render_pass_test_utils.cc

Issue 23455060: mix-blend-mode implementation for accelerated layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unittests fixed Created 7 years, 1 month 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/test/render_pass_test_common.cc ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/render_pass_test_utils.cc
diff --git a/cc/test/render_pass_test_utils.cc b/cc/test/render_pass_test_utils.cc
index b2045d7bc0dad83855709350bbaedf2f80c2e950..32e6f48cb409821cdc4b040b25bbe106fe5aeb5a 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,
« no previous file with comments | « cc/test/render_pass_test_common.cc ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698