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

Side by Side Diff: mojo/converters/surfaces/surfaces_utils.cc

Issue 640893003: Move mojo/services/public/cpp TypeConverters to mojo/converters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore the directory and component structures and target names. Created 6 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
« no previous file with comments | « mojo/converters/surfaces/surfaces_utils.h ('k') | mojo/converters/surfaces/tests/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "mojo/services/public/cpp/surfaces/surfaces_utils.h" 5 #include "mojo/converters/surfaces/surfaces_utils.h"
6 6
7 #include "mojo/services/public/cpp/geometry/geometry_type_converters.h" 7 #include "mojo/converters/geometry/geometry_type_converters.h"
8 #include "ui/gfx/geometry/rect.h" 8 #include "ui/gfx/geometry/rect.h"
9 #include "ui/gfx/geometry/size.h" 9 #include "ui/gfx/geometry/size.h"
10 #include "ui/gfx/transform.h" 10 #include "ui/gfx/transform.h"
11 11
12 namespace mojo { 12 namespace mojo {
13 13
14 SharedQuadStatePtr CreateDefaultSQS(const gfx::Size& size) { 14 SharedQuadStatePtr CreateDefaultSQS(const gfx::Size& size) {
15 SharedQuadStatePtr sqs = SharedQuadState::New(); 15 SharedQuadStatePtr sqs = SharedQuadState::New();
16 sqs->content_to_target_transform = Transform::From(gfx::Transform()); 16 sqs->content_to_target_transform = Transform::From(gfx::Transform());
17 sqs->content_bounds = Size::From(size); 17 sqs->content_bounds = Size::From(size);
(...skipping 10 matching lines...) Expand all
28 PassPtr pass = Pass::New(); 28 PassPtr pass = Pass::New();
29 pass->id = id; 29 pass->id = id;
30 pass->output_rect = Rect::From(rect); 30 pass->output_rect = Rect::From(rect);
31 pass->damage_rect = Rect::From(rect); 31 pass->damage_rect = Rect::From(rect);
32 pass->transform_to_root_target = Transform::From(gfx::Transform()); 32 pass->transform_to_root_target = Transform::From(gfx::Transform());
33 pass->has_transparent_background = false; 33 pass->has_transparent_background = false;
34 return pass.Pass(); 34 return pass.Pass();
35 } 35 }
36 36
37 } // namespace mojo 37 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/converters/surfaces/surfaces_utils.h ('k') | mojo/converters/surfaces/tests/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698