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

Side by Side Diff: components/view_manager/surfaces/surfaces_impl.cc

Issue 1150093003: Move GLES2, GPU & Surfaces into the ViewManager directory. This does not merge the applications, th… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 7 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 "components/surfaces/surfaces_impl.h" 5 #include "components/view_manager/surfaces/surfaces_impl.h"
6 6
7 #include "base/trace_event/trace_event.h" 7 #include "base/trace_event/trace_event.h"
8 #include "cc/output/compositor_frame.h" 8 #include "cc/output/compositor_frame.h"
9 #include "cc/resources/returned_resource.h" 9 #include "cc/resources/returned_resource.h"
10 #include "cc/surfaces/surface_id_allocator.h" 10 #include "cc/surfaces/surface_id_allocator.h"
11 #include "components/surfaces/surfaces_scheduler.h" 11 #include "components/view_manager/surfaces/surfaces_scheduler.h"
12 #include "components/surfaces/surfaces_service_application.h" 12 #include "components/view_manager/surfaces/surfaces_service_application.h"
13 #include "mojo/converters/geometry/geometry_type_converters.h" 13 #include "mojo/converters/geometry/geometry_type_converters.h"
14 #include "mojo/converters/surfaces/surfaces_type_converters.h" 14 #include "mojo/converters/surfaces/surfaces_type_converters.h"
15 15
16 using mojo::SurfaceIdPtr; 16 using mojo::SurfaceIdPtr;
17 17
18 namespace surfaces { 18 namespace surfaces {
19 19
20 namespace { 20 namespace {
21 void CallCallback(const mojo::Closure& callback, cc::SurfaceDrawStatus status) { 21 void CallCallback(const mojo::Closure& callback, cc::SurfaceDrawStatus status) {
22 callback.Run(); 22 callback.Run();
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 ret[i] = mojo::ReturnedResource::From(resources[i]); 76 ret[i] = mojo::ReturnedResource::From(resources[i]);
77 } 77 }
78 returner_->ReturnResources(ret.Pass()); 78 returner_->ReturnResources(ret.Pass());
79 } 79 }
80 80
81 cc::SurfaceId SurfacesImpl::QualifyIdentifier(uint32_t local_id) { 81 cc::SurfaceId SurfacesImpl::QualifyIdentifier(uint32_t local_id) {
82 return cc::SurfaceId(static_cast<uint64_t>(id_namespace_) << 32 | local_id); 82 return cc::SurfaceId(static_cast<uint64_t>(id_namespace_) << 32 | local_id);
83 } 83 }
84 84
85 } // namespace mojo 85 } // namespace mojo
OLDNEW
« no previous file with comments | « components/view_manager/surfaces/surfaces_impl.h ('k') | components/view_manager/surfaces/surfaces_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698