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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/android/jni_weak_ref.h" | 10 #include "base/android/jni_weak_ref.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 jint format, | 41 jint format, |
42 jint width, | 42 jint width, |
43 jint height, | 43 jint height, |
44 const base::android::JavaParamRef<jobject>& surface); | 44 const base::android::JavaParamRef<jobject>& surface); |
45 void SetOverlayVideoMode(JNIEnv* env, | 45 void SetOverlayVideoMode(JNIEnv* env, |
46 const base::android::JavaParamRef<jobject>& obj, | 46 const base::android::JavaParamRef<jobject>& obj, |
47 bool enabled); | 47 bool enabled); |
48 | 48 |
49 // CompositorClient implementation | 49 // CompositorClient implementation |
50 void UpdateLayerTreeHost() override; | 50 void UpdateLayerTreeHost() override; |
51 void OnSwapBuffersCompleted(int pending_swap_buffers) override; | 51 void DidSwapFrame(int pending_frames) override; |
52 | 52 |
53 private: | 53 private: |
54 ~ContentViewRenderView() override; | 54 ~ContentViewRenderView() override; |
55 | 55 |
56 void InitCompositor(); | 56 void InitCompositor(); |
57 | 57 |
58 base::android::ScopedJavaGlobalRef<jobject> java_obj_; | 58 base::android::ScopedJavaGlobalRef<jobject> java_obj_; |
59 | 59 |
60 std::unique_ptr<content::Compositor> compositor_; | 60 std::unique_ptr<content::Compositor> compositor_; |
61 | 61 |
62 gfx::NativeWindow root_window_; | 62 gfx::NativeWindow root_window_; |
63 int current_surface_format_; | 63 int current_surface_format_; |
64 | 64 |
65 DISALLOW_COPY_AND_ASSIGN(ContentViewRenderView); | 65 DISALLOW_COPY_AND_ASSIGN(ContentViewRenderView); |
66 }; | 66 }; |
67 | 67 |
68 | 68 |
69 | 69 |
70 } | 70 } |
71 | 71 |
72 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_RENDER_VIEW_H_ | 72 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_RENDER_VIEW_H_ |
OLD | NEW |