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

Side by Side Diff: sky/viewer/compositor/surface_holder.cc

Issue 1213683004: Move //sky/compositor to //sky/viewer/compositor (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 | « sky/viewer/compositor/surface_holder.h ('k') | sky/viewer/compositor/texture_cache.h » ('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 "sky/compositor/surface_holder.h" 5 #include "sky/viewer/compositor/surface_holder.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "mojo/converters/geometry/geometry_type_converters.h" 9 #include "mojo/converters/geometry/geometry_type_converters.h"
10 #include "mojo/public/cpp/application/connect.h" 10 #include "mojo/public/cpp/application/connect.h"
11 #include "mojo/public/interfaces/application/shell.mojom.h" 11 #include "mojo/public/interfaces/application/shell.mojom.h"
12 #include "sky/compositor/surface_allocator.h" 12 #include "sky/viewer/compositor/surface_allocator.h"
13 13
14 namespace sky { 14 namespace sky {
15 15
16 SurfaceHolder::Client::~Client() { 16 SurfaceHolder::Client::~Client() {
17 } 17 }
18 18
19 SurfaceHolder::SurfaceHolder(Client* client, mojo::Shell* shell) 19 SurfaceHolder::SurfaceHolder(Client* client, mojo::Shell* shell)
20 : client_(client), 20 : client_(client),
21 id_namespace_(0u), 21 id_namespace_(0u),
22 local_id_(0u), 22 local_id_(0u),
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 if (local_id_ != 0u) 70 if (local_id_ != 0u)
71 SetQualifiedId(); 71 SetQualifiedId();
72 } 72 }
73 73
74 void SurfaceHolder::ReturnResources( 74 void SurfaceHolder::ReturnResources(
75 mojo::Array<mojo::ReturnedResourcePtr> resources) { 75 mojo::Array<mojo::ReturnedResourcePtr> resources) {
76 client_->ReturnResources(resources.Pass()); 76 client_->ReturnResources(resources.Pass());
77 } 77 }
78 78
79 } // namespace sky 79 } // namespace sky
OLDNEW
« no previous file with comments | « sky/viewer/compositor/surface_holder.h ('k') | sky/viewer/compositor/texture_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698