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

Unified Diff: mojo/services/surfaces/public/cpp/surfaces_utils.cc

Issue 1394303004: Move //mojo/services/X/public/... to //mojo/services/X/... (part 3). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_2-x-no_public_1
Patch Set: Created 5 years, 2 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: mojo/services/surfaces/public/cpp/surfaces_utils.cc
diff --git a/mojo/services/surfaces/public/cpp/surfaces_utils.cc b/mojo/services/surfaces/public/cpp/surfaces_utils.cc
deleted file mode 100644
index 70fa249e3d9643af1f2b0a4263261d5a049d5d67..0000000000000000000000000000000000000000
--- a/mojo/services/surfaces/public/cpp/surfaces_utils.cc
+++ /dev/null
@@ -1,49 +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 "surfaces/public/cpp/surfaces_utils.h"
-
-#include "geometry/interfaces/geometry.mojom.h"
-
-namespace mojo {
-
-namespace {
-TransformPtr GetIdentityTransform() {
- TransformPtr transform(Transform::New());
- transform->matrix.resize(16);
- transform->matrix[0] = 1.f;
- transform->matrix[5] = 1.f;
- transform->matrix[10] = 1.f;
- transform->matrix[15] = 1.f;
- return transform.Pass();
-}
-}
-
-SharedQuadStatePtr CreateDefaultSQS(const Size& size) {
- SharedQuadStatePtr sqs = SharedQuadState::New();
- sqs->content_to_target_transform = GetIdentityTransform();
- sqs->content_bounds = size.Clone();
- Rect rect;
- rect.width = size.width;
- rect.height = size.height;
- sqs->visible_content_rect = rect.Clone();
- sqs->clip_rect = rect.Clone();
- sqs->is_clipped = false;
- sqs->opacity = 1.f;
- sqs->blend_mode = mojo::SkXfermode::kSrc_Mode;
- sqs->sorting_context_id = 0;
- return sqs.Pass();
-}
-
-PassPtr CreateDefaultPass(int id, const Rect& rect) {
- PassPtr pass = Pass::New();
- pass->id = id;
- pass->output_rect = rect.Clone();
- pass->damage_rect = rect.Clone();
- pass->transform_to_root_target = GetIdentityTransform();
- pass->has_transparent_background = false;
- return pass.Pass();
-}
-
-} // namespace mojo
« no previous file with comments | « mojo/services/surfaces/public/cpp/surfaces_utils.h ('k') | mojo/services/surfaces/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698