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

Side by Side Diff: ui/android/window_android_compositor.h

Issue 2382873002: Replace usage of SurfaceId's client_id with FrameSinkId (Closed)
Patch Set: Rebased Created 4 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 | « ui/android/delegated_frame_host_android.cc ('k') | ui/compositor/compositor.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 UI_ANDROID_WINDOW_ANDROID_COMPOSITOR_H_ 5 #ifndef UI_ANDROID_WINDOW_ANDROID_COMPOSITOR_H_
6 #define UI_ANDROID_WINDOW_ANDROID_COMPOSITOR_H_ 6 #define UI_ANDROID_WINDOW_ANDROID_COMPOSITOR_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "cc/output/copy_output_request.h" 10 #include "cc/output/copy_output_request.h"
11 #include "cc/surfaces/frame_sink_id.h"
11 #include "ui/android/ui_android_export.h" 12 #include "ui/android/ui_android_export.h"
12 13
13 namespace cc { 14 namespace cc {
14 class Layer; 15 class Layer;
15 } 16 }
16 17
17 namespace ui { 18 namespace ui {
18 19
19 class ResourceManager; 20 class ResourceManager;
20 21
21 // Android interface for compositor-related tasks. 22 // Android interface for compositor-related tasks.
22 class UI_ANDROID_EXPORT WindowAndroidCompositor { 23 class UI_ANDROID_EXPORT WindowAndroidCompositor {
23 public: 24 public:
24 virtual ~WindowAndroidCompositor() {} 25 virtual ~WindowAndroidCompositor() {}
25 26
26 virtual void AttachLayerForReadback(scoped_refptr<cc::Layer> layer) = 0; 27 virtual void AttachLayerForReadback(scoped_refptr<cc::Layer> layer) = 0;
27 virtual void RequestCopyOfOutputOnRootLayer( 28 virtual void RequestCopyOfOutputOnRootLayer(
28 std::unique_ptr<cc::CopyOutputRequest> request) = 0; 29 std::unique_ptr<cc::CopyOutputRequest> request) = 0;
29 virtual void OnVSync(base::TimeTicks frame_time, 30 virtual void OnVSync(base::TimeTicks frame_time,
30 base::TimeDelta vsync_period) = 0; 31 base::TimeDelta vsync_period) = 0;
31 virtual void SetNeedsAnimate() = 0; 32 virtual void SetNeedsAnimate() = 0;
32 virtual ResourceManager& GetResourceManager() = 0; 33 virtual ResourceManager& GetResourceManager() = 0;
33 virtual uint32_t GetSurfaceClientId() = 0; 34 virtual cc::FrameSinkId GetFrameSinkId() = 0;
34 }; 35 };
35 36
36 } // namespace ui 37 } // namespace ui
37 38
38 #endif // UI_ANDROID_WINDOW_ANDROID_COMPOSITOR_H_ 39 #endif // UI_ANDROID_WINDOW_ANDROID_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « ui/android/delegated_frame_host_android.cc ('k') | ui/compositor/compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698