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 #include "content/browser/android/content_view_render_view.h" | 5 #include "content/browser/android/content_view_render_view.h" |
6 | 6 |
7 #include <android/bitmap.h> | 7 #include <android/bitmap.h> |
8 #include <android/native_window_jni.h> | 8 #include <android/native_window_jni.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 compositor_->SetNeedsComposite(); | 105 compositor_->SetNeedsComposite(); |
106 } | 106 } |
107 | 107 |
108 void ContentViewRenderView::UpdateLayerTreeHost() { | 108 void ContentViewRenderView::UpdateLayerTreeHost() { |
109 // TODO(wkorman): Rename Layout to UpdateLayerTreeHost in all Android | 109 // TODO(wkorman): Rename Layout to UpdateLayerTreeHost in all Android |
110 // Compositor related classes. | 110 // Compositor related classes. |
111 } | 111 } |
112 | 112 |
113 void ContentViewRenderView::OnSwapBuffersCompleted(int pending_swap_buffers) { | 113 void ContentViewRenderView::OnSwapBuffersCompleted(int pending_swap_buffers) { |
114 JNIEnv* env = base::android::AttachCurrentThread(); | 114 JNIEnv* env = base::android::AttachCurrentThread(); |
115 Java_ContentViewRenderView_onSwapBuffersCompleted(env, java_obj_.obj()); | 115 Java_ContentViewRenderView_onSwapBuffersCompleted(env, java_obj_); |
116 } | 116 } |
117 | 117 |
118 void ContentViewRenderView::InitCompositor() { | 118 void ContentViewRenderView::InitCompositor() { |
119 if (!compositor_) | 119 if (!compositor_) |
120 compositor_.reset(Compositor::Create(this, root_window_)); | 120 compositor_.reset(Compositor::Create(this, root_window_)); |
121 } | 121 } |
122 | 122 |
123 } // namespace content | 123 } // namespace content |
OLD | NEW |