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

Side by Side Diff: services/ui/public/cpp/lib/output_surface.cc

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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
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/mus/public/cpp/output_surface.h" 5 #include "services/ui/public/cpp/output_surface.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "cc/output/compositor_frame.h" 8 #include "cc/output/compositor_frame.h"
9 #include "cc/output/compositor_frame_ack.h" 9 #include "cc/output/compositor_frame_ack.h"
10 #include "cc/output/output_surface_client.h" 10 #include "cc/output/output_surface_client.h"
11 #include "components/mus/public/cpp/window_surface.h" 11 #include "services/ui/public/cpp/window_surface.h"
12 12
13 namespace mus { 13 namespace mus {
14 14
15 OutputSurface::OutputSurface( 15 OutputSurface::OutputSurface(
16 const scoped_refptr<cc::ContextProvider>& context_provider, 16 const scoped_refptr<cc::ContextProvider>& context_provider,
17 std::unique_ptr<mus::WindowSurface> surface) 17 std::unique_ptr<mus::WindowSurface> surface)
18 : cc::OutputSurface(context_provider, nullptr, nullptr), 18 : cc::OutputSurface(context_provider, nullptr, nullptr),
19 surface_(std::move(surface)) { 19 surface_(std::move(surface)) {
20 capabilities_.delegated_rendering = true; 20 capabilities_.delegated_rendering = true;
21 } 21 }
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 cc::CompositorFrameAck cfa; 61 cc::CompositorFrameAck cfa;
62 cfa.resources = resources.To<cc::ReturnedResourceArray>(); 62 cfa.resources = resources.To<cc::ReturnedResourceArray>();
63 ReclaimResources(&cfa); 63 ReclaimResources(&cfa);
64 } 64 }
65 65
66 void OutputSurface::SwapBuffersComplete() { 66 void OutputSurface::SwapBuffersComplete() {
67 client_->DidSwapBuffersComplete(); 67 client_->DidSwapBuffersComplete();
68 } 68 }
69 69
70 } // namespace mus 70 } // namespace mus
OLDNEW
« no previous file with comments | « services/ui/public/cpp/lib/in_flight_change.cc ('k') | services/ui/public/cpp/lib/property_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698