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

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

Issue 239963002: Android: Move scheduling logic to CompositorImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
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 UI_BASE_ANDROID_WINDOW_ANDROID_COMPOSITOR_H_ 5 #ifndef UI_BASE_ANDROID_WINDOW_ANDROID_COMPOSITOR_H_
6 #define UI_BASE_ANDROID_WINDOW_ANDROID_COMPOSITOR_H_ 6 #define UI_BASE_ANDROID_WINDOW_ANDROID_COMPOSITOR_H_
7 7
8 #include "ui/base/ui_base_export.h" 8 #include "ui/base/ui_base_export.h"
9 9
10 namespace cc { 10 namespace cc {
11 class Layer; 11 class Layer;
12 } 12 }
13 13
14 namespace ui { 14 namespace ui {
15 15
16 // Android interface for compositor-related tasks. 16 // Android interface for compositor-related tasks.
17 class UI_BASE_EXPORT WindowAndroidCompositor { 17 class UI_BASE_EXPORT WindowAndroidCompositor {
18 public: 18 public:
19 virtual ~WindowAndroidCompositor() {} 19 virtual ~WindowAndroidCompositor() {}
20 20
21 virtual void AttachLayerForReadback(scoped_refptr<cc::Layer> layer) = 0; 21 virtual void AttachLayerForReadback(scoped_refptr<cc::Layer> layer) = 0;
22 virtual void OnVSync(base::TimeTicks frame_time,
23 base::TimeDelta vsync_period) = 0;
22 }; 24 };
23 25
24 } // namespace ui 26 } // namespace ui
25 27
26 #endif // UI_BASE_ANDROID_WINDOW_ANDROID_COMPOSITOR_H_ 28 #endif // UI_BASE_ANDROID_WINDOW_ANDROID_COMPOSITOR_H_
OLDNEW
« content/public/browser/android/compositor_client.h ('K') | « ui/base/android/window_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698