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

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

Issue 236193013: Android: Consolidate and simplify VSync logic (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_OBSERVER_H_ 5 #ifndef UI_BASE_ANDROID_WINDOW_ANDROID_OBSERVER_H_
6 #define UI_BASE_ANDROID_WINDOW_ANDROID_OBSERVER_H_ 6 #define UI_BASE_ANDROID_WINDOW_ANDROID_OBSERVER_H_
7 7
8 #include "ui/base/ui_base_export.h" 8 #include "ui/base/ui_base_export.h"
9 9
10 namespace ui { 10 namespace ui {
11 11
12 class UI_BASE_EXPORT WindowAndroidObserver { 12 class UI_BASE_EXPORT WindowAndroidObserver {
13 public: 13 public:
14 virtual void OnCompositingDidCommit() = 0; 14 virtual void OnCompositingDidCommit() = 0;
15 virtual void OnAttachCompositor() = 0; 15 virtual void OnAttachCompositor() = 0;
16 virtual void OnDetachCompositor() = 0; 16 virtual void OnDetachCompositor() = 0;
17 virtual void OnWillDestroyWindow() = 0; 17 virtual void OnWillDestroyWindow() = 0;
18 virtual void OnVSync(base::TimeTicks frame_time,
19 base::TimeDelta vsync_period) {}
brianderson 2014/04/17 01:05:02 Should this also be pure virtual?
no sievers 2014/04/25 22:23:33 Done.
18 20
19 protected: 21 protected:
20 virtual ~WindowAndroidObserver() {} 22 virtual ~WindowAndroidObserver() {}
21 }; 23 };
22 24
23 } // namespace ui 25 } // namespace ui
24 26
25 #endif // UI_BASE_ANDROID_WINDOW_ANDROID_OBSERVER_H_ 27 #endif // UI_BASE_ANDROID_WINDOW_ANDROID_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698