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

Unified Diff: ui/base/android/window_android.h

Issue 611313003: Use estimated vsync period on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused constant Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/android/java/src/org/chromium/ui/base/WindowAndroid.java ('k') | ui/base/android/window_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/android/window_android.h
diff --git a/ui/base/android/window_android.h b/ui/base/android/window_android.h
index cd8ae3408c85f2677e2f8472a7357c4e0f9d3012..4652f753883e3ddc09d5578a53734bf6aa08e67f 100644
--- a/ui/base/android/window_android.h
+++ b/ui/base/android/window_android.h
@@ -22,7 +22,7 @@ class WindowAndroidObserver;
// Android implementation of the activity window.
class UI_BASE_EXPORT WindowAndroid {
public:
- WindowAndroid(JNIEnv* env, jobject obj, jlong vsync_period);
+ WindowAndroid(JNIEnv* env, jobject obj);
void Destroy(JNIEnv* env, jobject obj);
@@ -53,7 +53,10 @@ class UI_BASE_EXPORT WindowAndroid {
void RequestVSyncUpdate();
void SetNeedsAnimate();
- void OnVSync(JNIEnv* env, jobject obj, jlong time_micros);
+ void OnVSync(JNIEnv* env,
+ jobject obj,
+ jlong time_micros,
+ jlong period_micros);
void Animate(base::TimeTicks begin_frame_time);
private:
@@ -62,7 +65,6 @@ class UI_BASE_EXPORT WindowAndroid {
JavaObjectWeakGlobalRef weak_java_window_;
gfx::Vector2dF content_offset_;
WindowAndroidCompositor* compositor_;
- base::TimeDelta vsync_period_;
ObserverList<WindowAndroidObserver> observer_list_;
« no previous file with comments | « ui/android/java/src/org/chromium/ui/base/WindowAndroid.java ('k') | ui/base/android/window_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698