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

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

Issue 2088603002: Implement RenderPass StructTraits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Dana's comments Created 4 years, 6 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
deleted file mode 100644
index d0e7ca65e65028c5e99381b4cd36f9ef6360a4bb..0000000000000000000000000000000000000000
--- a/components/mus/public/cpp/surfaces/surfaces_utils.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "components/mus/public/cpp/surfaces/surfaces_utils.h"
-
-#include "ui/gfx/geometry/rect.h"
-#include "ui/gfx/geometry/size.h"
-#include "ui/gfx/transform.h"
-
-using cc::mojom::RenderPass;
-using cc::mojom::RenderPassPtr;
-
-namespace mojo {
-
-void ConfigureSharedQuadState(const gfx::Size& size, cc::SharedQuadState* out) {
- out->quad_layer_bounds = size;
- out->visible_quad_layer_rect = gfx::Rect(size);
- out->clip_rect = gfx::Rect(size);
- out->is_clipped = false;
- out->opacity = 1.f;
- out->blend_mode = SkXfermode::kSrc_Mode;
- out->sorting_context_id = 0;
-}
-
-RenderPassPtr CreateDefaultPass(int id, const gfx::Rect& rect) {
- RenderPassPtr pass = RenderPass::New();
- cc::RenderPassId render_pass_id;
- render_pass_id.layer_id = 1;
- render_pass_id.index = id;
- pass->id = render_pass_id;
- pass->output_rect = rect;
- pass->damage_rect = rect;
- pass->has_transparent_background = false;
- return pass;
-}
-
-} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698