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

Unified Diff: mojo/services/view_manager/display_manager.cc

Issue 720883003: Adds a CloneAndAnimate function to WindowManagerInternalClient (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Add GetView(ClonedViewId) coverage Created 6 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 | « mojo/services/view_manager/connection_manager.cc ('k') | mojo/services/view_manager/ids.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/view_manager/display_manager.cc
diff --git a/mojo/services/view_manager/display_manager.cc b/mojo/services/view_manager/display_manager.cc
index a3be440bd5624d94b4134662766b1992dd22a69d..ccd828ca45b4410b823c7a1fd36b0cad0835963a 100644
--- a/mojo/services/view_manager/display_manager.cc
+++ b/mojo/services/view_manager/display_manager.cc
@@ -31,7 +31,7 @@ void DrawViewTree(Pass* pass,
for (std::vector<const ServerView*>::reverse_iterator it = children.rbegin();
it != children.rend();
++it) {
- DrawViewTree(pass, *it, offset + view->bounds().OffsetFromOrigin());
+ DrawViewTree(pass, *it, node_bounds.OffsetFromOrigin());
}
cc::SurfaceId node_id = view->surface_id();
@@ -53,6 +53,8 @@ void DrawViewTree(Pass* pass,
surface_quad->surface_quad_state = surface_quad_state.Pass();
SharedQuadStatePtr sqs = CreateDefaultSQS(*Size::From(node_bounds.size()));
+ sqs->blend_mode = SK_XFERMODE_kSrcOver_Mode;
+ sqs->opacity = view->opacity();
sqs->content_to_target_transform = Transform::From(node_transform);
pass->quads.push_back(surface_quad.Pass());
« no previous file with comments | « mojo/services/view_manager/connection_manager.cc ('k') | mojo/services/view_manager/ids.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698