| OLD | NEW |
| 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_RENDER_VIEW_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_RENDER_VIEW_H_ |
| 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_RENDER_VIEW_H_ | 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_RENDER_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/android/jni_weak_ref.h" | 8 #include "base/android/jni_weak_ref.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 void Destroy(JNIEnv* env, jobject obj); | 33 void Destroy(JNIEnv* env, jobject obj); |
| 34 void SetCurrentContentViewCore(JNIEnv* env, jobject obj, | 34 void SetCurrentContentViewCore(JNIEnv* env, jobject obj, |
| 35 jlong native_content_view_core); | 35 jlong native_content_view_core); |
| 36 void SetLayerTreeBuildHelper( | 36 void SetLayerTreeBuildHelper( |
| 37 JNIEnv* env, jobject obj, jlong native_build_helper); | 37 JNIEnv* env, jobject obj, jlong native_build_helper); |
| 38 void SurfaceCreated(JNIEnv* env, jobject obj); | 38 void SurfaceCreated(JNIEnv* env, jobject obj); |
| 39 void SurfaceDestroyed(JNIEnv* env, jobject obj); | 39 void SurfaceDestroyed(JNIEnv* env, jobject obj); |
| 40 void SurfaceChanged(JNIEnv* env, jobject obj, | 40 void SurfaceChanged(JNIEnv* env, jobject obj, |
| 41 jint format, jint width, jint height, jobject surface); | 41 jint format, jint width, jint height, jobject surface); |
| 42 jboolean Composite(JNIEnv* env, jobject obj); | 42 jboolean Composite(JNIEnv* env, jobject obj); |
| 43 jboolean CompositeToBitmap(JNIEnv* env, jobject obj, jobject java_bitmap); |
| 43 void SetOverlayVideoMode(JNIEnv* env, jobject obj, bool enabled); | 44 void SetOverlayVideoMode(JNIEnv* env, jobject obj, bool enabled); |
| 44 | 45 |
| 45 // CompositorClient --------------------------------------------------------- | 46 // CompositorClient --------------------------------------------------------- |
| 46 virtual void ScheduleComposite() OVERRIDE; | 47 virtual void ScheduleComposite() OVERRIDE; |
| 47 virtual void OnSwapBuffersPosted() OVERRIDE; | 48 virtual void OnSwapBuffersPosted() OVERRIDE; |
| 48 virtual void OnSwapBuffersCompleted() OVERRIDE; | 49 virtual void OnSwapBuffersCompleted() OVERRIDE; |
| 49 | 50 |
| 50 private: | 51 private: |
| 51 virtual ~ContentViewRenderView(); | 52 virtual ~ContentViewRenderView(); |
| 52 | 53 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 63 int current_surface_format_; | 64 int current_surface_format_; |
| 64 | 65 |
| 65 DISALLOW_COPY_AND_ASSIGN(ContentViewRenderView); | 66 DISALLOW_COPY_AND_ASSIGN(ContentViewRenderView); |
| 66 }; | 67 }; |
| 67 | 68 |
| 68 | 69 |
| 69 | 70 |
| 70 } | 71 } |
| 71 | 72 |
| 72 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_RENDER_VIEW_H_ | 73 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_RENDER_VIEW_H_ |
| OLD | NEW |