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

Side by Side Diff: mojo/services/surfaces/public/cpp/surfaces_utils.cc

Issue 1398973004: Move //mojo/services/X/public/... to //mojo/services/X/... (part 2). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_1
Patch Set: add missing copyright notices 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "surfaces/public/cpp/surfaces_utils.h" 5 #include "surfaces/public/cpp/surfaces_utils.h"
6 6
7 #include "geometry/public/interfaces/geometry.mojom.h" 7 #include "geometry/interfaces/geometry.mojom.h"
8 8
9 namespace mojo { 9 namespace mojo {
10 10
11 namespace { 11 namespace {
12 TransformPtr GetIdentityTransform() { 12 TransformPtr GetIdentityTransform() {
13 TransformPtr transform(Transform::New()); 13 TransformPtr transform(Transform::New());
14 transform->matrix.resize(16); 14 transform->matrix.resize(16);
15 transform->matrix[0] = 1.f; 15 transform->matrix[0] = 1.f;
16 transform->matrix[5] = 1.f; 16 transform->matrix[5] = 1.f;
17 transform->matrix[10] = 1.f; 17 transform->matrix[10] = 1.f;
(...skipping 22 matching lines...) Expand all
40 PassPtr pass = Pass::New(); 40 PassPtr pass = Pass::New();
41 pass->id = id; 41 pass->id = id;
42 pass->output_rect = rect.Clone(); 42 pass->output_rect = rect.Clone();
43 pass->damage_rect = rect.Clone(); 43 pass->damage_rect = rect.Clone();
44 pass->transform_to_root_target = GetIdentityTransform(); 44 pass->transform_to_root_target = GetIdentityTransform();
45 pass->has_transparent_background = false; 45 pass->has_transparent_background = false;
46 return pass.Pass(); 46 return pass.Pass();
47 } 47 }
48 48
49 } // namespace mojo 49 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/surfaces/public/cpp/BUILD.gn ('k') | mojo/services/surfaces/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698