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

Side by Side Diff: services/ui/public/cpp/output_surface.h

Issue 2260943002: Move default begin frame sources out to mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert SingleThreadProxy changes Created 4 years, 4 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 | « no previous file | services/ui/public/cpp/output_surface.cc » ('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 #ifndef SERVICES_UI_PUBLIC_CPP_OUTPUT_SURFACE_H_ 5 #ifndef SERVICES_UI_PUBLIC_CPP_OUTPUT_SURFACE_H_
6 #define SERVICES_UI_PUBLIC_CPP_OUTPUT_SURFACE_H_ 6 #define SERVICES_UI_PUBLIC_CPP_OUTPUT_SURFACE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "cc/output/output_surface.h" 9 #include "cc/output/output_surface.h"
10 #include "cc/scheduler/begin_frame_source.h"
10 #include "cc/surfaces/surface_id.h" 11 #include "cc/surfaces/surface_id.h"
11 #include "mojo/public/cpp/bindings/binding.h" 12 #include "mojo/public/cpp/bindings/binding.h"
12 #include "services/ui/public/cpp/window_surface.h" 13 #include "services/ui/public/cpp/window_surface.h"
13 #include "services/ui/public/cpp/window_surface_client.h" 14 #include "services/ui/public/cpp/window_surface_client.h"
14 15
15 namespace gpu { 16 namespace gpu {
16 class GpuChannelHost; 17 class GpuChannelHost;
17 } 18 }
18 19
19 namespace ui { 20 namespace ui {
(...skipping 12 matching lines...) Expand all
32 uint32_t GetFramebufferCopyTextureFormat() override; 33 uint32_t GetFramebufferCopyTextureFormat() override;
33 34
34 private: 35 private:
35 // WindowSurfaceClient implementation: 36 // WindowSurfaceClient implementation:
36 void OnResourcesReturned( 37 void OnResourcesReturned(
37 WindowSurface* surface, 38 WindowSurface* surface,
38 mojo::Array<cc::ReturnedResource> resources) override; 39 mojo::Array<cc::ReturnedResource> resources) override;
39 40
40 void SwapBuffersComplete(); 41 void SwapBuffersComplete();
41 42
43 std::unique_ptr<cc::BeginFrameSource> begin_frame_source_;
42 std::unique_ptr<WindowSurface> surface_; 44 std::unique_ptr<WindowSurface> surface_;
43 45
44 DISALLOW_COPY_AND_ASSIGN(OutputSurface); 46 DISALLOW_COPY_AND_ASSIGN(OutputSurface);
45 }; 47 };
46 48
47 } // namespace ui 49 } // namespace ui
48 50
49 #endif // SERVICES_UI_PUBLIC_CPP_OUTPUT_SURFACE_H_ 51 #endif // SERVICES_UI_PUBLIC_CPP_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « no previous file | services/ui/public/cpp/output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698