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: content/browser/android/content_view_core_impl.h

Issue 11959036: Implement vsync notification on Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 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
« no previous file with comments | « no previous file | content/browser/android/content_view_core_impl.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/android/jni_helper.h" 10 #include "base/android/jni_helper.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 jobject retained_object_set); 188 jobject retained_object_set);
189 void RemoveJavascriptInterface(JNIEnv* env, jobject obj, jstring name); 189 void RemoveJavascriptInterface(JNIEnv* env, jobject obj, jstring name);
190 int GetNavigationHistory(JNIEnv* env, jobject obj, jobject context); 190 int GetNavigationHistory(JNIEnv* env, jobject obj, jobject context);
191 void GetDirectedNavigationHistory(JNIEnv* env, 191 void GetDirectedNavigationHistory(JNIEnv* env,
192 jobject obj, 192 jobject obj,
193 jobject context, 193 jobject context,
194 jboolean is_forward, 194 jboolean is_forward,
195 jint max_entries); 195 jint max_entries);
196 void UpdateVSyncParameters(JNIEnv* env, jobject obj, jlong timebase_micros, 196 void UpdateVSyncParameters(JNIEnv* env, jobject obj, jlong timebase_micros,
197 jlong interval_micros); 197 jlong interval_micros);
198 void OnVSync(JNIEnv* env, jobject /* obj */, jlong frame_time_micros);
198 jboolean PopulateBitmapFromCompositor(JNIEnv* env, 199 jboolean PopulateBitmapFromCompositor(JNIEnv* env,
199 jobject obj, 200 jobject obj,
200 jobject jbitmap); 201 jobject jbitmap);
201 void WasResized(JNIEnv* env, jobject obj); 202 void WasResized(JNIEnv* env, jobject obj);
202 jboolean IsRenderWidgetHostViewReady(JNIEnv* env, jobject obj); 203 jboolean IsRenderWidgetHostViewReady(JNIEnv* env, jobject obj);
203 void ExitFullscreen(JNIEnv* env, jobject obj); 204 void ExitFullscreen(JNIEnv* env, jobject obj);
204 void UpdateTopControlsState(JNIEnv* env, 205 void UpdateTopControlsState(JNIEnv* env,
205 jobject obj, 206 jobject obj,
206 bool enable_hiding, 207 bool enable_hiding,
207 bool enable_showing, 208 bool enable_showing,
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 278
278 gfx::Size GetPhysicalBackingSize() const; 279 gfx::Size GetPhysicalBackingSize() const;
279 gfx::Size GetViewportSizeDip() const; 280 gfx::Size GetViewportSizeDip() const;
280 gfx::Size GetViewportSizeOffsetDip() const; 281 gfx::Size GetViewportSizeOffsetDip() const;
281 float GetOverdrawBottomHeightDip() const; 282 float GetOverdrawBottomHeightDip() const;
282 283
283 InputEventAckState FilterInputEvent(const WebKit::WebInputEvent& input_event); 284 InputEventAckState FilterInputEvent(const WebKit::WebInputEvent& input_event);
284 285
285 void AttachLayer(scoped_refptr<cc::Layer> layer); 286 void AttachLayer(scoped_refptr<cc::Layer> layer);
286 void RemoveLayer(scoped_refptr<cc::Layer> layer); 287 void RemoveLayer(scoped_refptr<cc::Layer> layer);
288 void SetVSyncNotificationEnabled(bool enabled);
287 289
288 private: 290 private:
289 class ContentViewUserData; 291 class ContentViewUserData;
290 292
291 friend class ContentViewUserData; 293 friend class ContentViewUserData;
292 virtual ~ContentViewCoreImpl(); 294 virtual ~ContentViewCoreImpl();
293 295
294 // NotificationObserver implementation. 296 // NotificationObserver implementation.
295 virtual void Observe(int type, 297 virtual void Observe(int type,
296 const NotificationSource& source, 298 const NotificationSource& source,
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 scoped_ptr<SyncInputEventFilter> input_event_filter_; 351 scoped_ptr<SyncInputEventFilter> input_event_filter_;
350 352
351 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 353 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
352 }; 354 };
353 355
354 bool RegisterContentViewCore(JNIEnv* env); 356 bool RegisterContentViewCore(JNIEnv* env);
355 357
356 } // namespace content 358 } // namespace content
357 359
358 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 360 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/android/content_view_core_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698