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

Unified Diff: components/mus/public/cpp/surfaces/surfaces_utils.cc

Issue 2011263002: Implement RenderPassId StructTrait (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 7 months 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
Index: components/mus/public/cpp/surfaces/surfaces_utils.cc
diff --git a/components/mus/public/cpp/surfaces/surfaces_utils.cc b/components/mus/public/cpp/surfaces/surfaces_utils.cc
index e3a1702f2b93287ec267c68565191d878a1668f5..31f87aa839890297774e9fbdac5b873278102678 100644
--- a/components/mus/public/cpp/surfaces/surfaces_utils.cc
+++ b/components/mus/public/cpp/surfaces/surfaces_utils.cc
@@ -12,7 +12,6 @@
using mus::mojom::Pass;
using mus::mojom::PassPtr;
-using mus::mojom::RenderPassId;
using mus::mojom::SharedQuadState;
using mus::mojom::SharedQuadStatePtr;
@@ -33,10 +32,10 @@ SharedQuadStatePtr CreateDefaultSQS(const gfx::Size& size) {
PassPtr CreateDefaultPass(int id, const gfx::Rect& rect) {
PassPtr pass = Pass::New();
- RenderPassId render_pass_id;
+ cc::RenderPassId render_pass_id;
render_pass_id.layer_id = 1;
render_pass_id.index = id;
- pass->id = render_pass_id.Clone();
+ pass->id = render_pass_id;
pass->output_rect = Rect::From(rect);
pass->damage_rect = Rect::From(rect);
pass->transform_to_root_target = Transform::From(gfx::Transform());

Powered by Google App Engine
This is Rietveld 408576698