Chromium Code Reviews| 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/renderer_host/render_widget_host_view_android.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_android.h" |
| 6 | 6 |
| 7 #include <android/bitmap.h> | 7 #include <android/bitmap.h> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 22 #include "cc/output/copy_output_request.h" | 22 #include "cc/output/copy_output_request.h" |
| 23 #include "cc/output/copy_output_result.h" | 23 #include "cc/output/copy_output_result.h" |
| 24 #include "cc/resources/single_release_callback.h" | 24 #include "cc/resources/single_release_callback.h" |
| 25 #include "cc/trees/layer_tree_host.h" | 25 #include "cc/trees/layer_tree_host.h" |
| 26 #include "content/browser/accessibility/browser_accessibility_manager_android.h" | 26 #include "content/browser/accessibility/browser_accessibility_manager_android.h" |
| 27 #include "content/browser/android/content_view_core_impl.h" | 27 #include "content/browser/android/content_view_core_impl.h" |
| 28 #include "content/browser/android/in_process/synchronous_compositor_impl.h" | 28 #include "content/browser/android/in_process/synchronous_compositor_impl.h" |
| 29 #include "content/browser/android/overscroll_glow.h" | 29 #include "content/browser/android/overscroll_glow.h" |
| 30 #include "content/browser/gpu/gpu_surface_tracker.h" | 30 #include "content/browser/gpu/gpu_surface_tracker.h" |
| 31 #include "content/browser/renderer_host/compositor_impl_android.h" | 31 #include "content/browser/renderer_host/compositor_impl_android.h" |
| 32 #include "content/browser/renderer_host/compositor_observer.h" | |
| 32 #include "content/browser/renderer_host/dip_util.h" | 33 #include "content/browser/renderer_host/dip_util.h" |
| 33 #include "content/browser/renderer_host/generic_touch_gesture_android.h" | 34 #include "content/browser/renderer_host/generic_touch_gesture_android.h" |
| 34 #include "content/browser/renderer_host/image_transport_factory_android.h" | 35 #include "content/browser/renderer_host/image_transport_factory_android.h" |
| 35 #include "content/browser/renderer_host/render_widget_host_impl.h" | 36 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 36 #include "content/common/gpu/client/gl_helper.h" | 37 #include "content/common/gpu/client/gl_helper.h" |
| 37 #include "content/common/gpu/gpu_messages.h" | 38 #include "content/common/gpu/gpu_messages.h" |
| 38 #include "content/common/input_messages.h" | 39 #include "content/common/input_messages.h" |
| 39 #include "content/common/view_messages.h" | 40 #include "content/common/view_messages.h" |
| 40 #include "content/public/common/content_switches.h" | 41 #include "content/public/common/content_switches.h" |
| 41 #include "skia/ext/image_operations.h" | 42 #include "skia/ext/image_operations.h" |
| (...skipping 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1185 } | 1186 } |
| 1186 } | 1187 } |
| 1187 | 1188 |
| 1188 void RenderWidgetHostViewAndroid::HasTouchEventHandlers( | 1189 void RenderWidgetHostViewAndroid::HasTouchEventHandlers( |
| 1189 bool need_touch_events) { | 1190 bool need_touch_events) { |
| 1190 if (content_view_core_) | 1191 if (content_view_core_) |
| 1191 content_view_core_->HasTouchEventHandlers(need_touch_events); | 1192 content_view_core_->HasTouchEventHandlers(need_touch_events); |
| 1192 } | 1193 } |
| 1193 | 1194 |
| 1194 unsigned RenderWidgetHostViewAndroid::PrepareTexture() { | 1195 unsigned RenderWidgetHostViewAndroid::PrepareTexture() { |
| 1195 RunAckCallbacks(); | 1196 RunAckCallbacks(); |
|
no sievers
2013/10/10 17:48:03
You can actually remove both DelegatedRendererClie
powei
2013/10/16 22:42:35
Done.
| |
| 1196 return texture_id_in_layer_; | 1197 return texture_id_in_layer_; |
| 1197 } | 1198 } |
| 1198 | 1199 |
| 1199 void RenderWidgetHostViewAndroid::DidCommitFrameData() { | 1200 void RenderWidgetHostViewAndroid::DidCommitFrameData() { |
| 1200 RunAckCallbacks(); | 1201 RunAckCallbacks(); |
| 1201 } | 1202 } |
| 1202 | 1203 |
| 1204 void RenderWidgetHostViewAndroid::OnCompositingDidCommit( | |
| 1205 Compositor* compositor) { | |
| 1206 RunAckCallbacks(); | |
| 1207 } | |
| 1208 | |
| 1203 WebKit::WebGraphicsContext3D* RenderWidgetHostViewAndroid::Context3d() { | 1209 WebKit::WebGraphicsContext3D* RenderWidgetHostViewAndroid::Context3d() { |
| 1204 return ImageTransportFactoryAndroid::GetInstance()->GetContext3D(); | 1210 return ImageTransportFactoryAndroid::GetInstance()->GetContext3D(); |
| 1205 } | 1211 } |
| 1206 | 1212 |
| 1207 bool RenderWidgetHostViewAndroid::PrepareTextureMailbox( | 1213 bool RenderWidgetHostViewAndroid::PrepareTextureMailbox( |
| 1208 cc::TextureMailbox* mailbox, | 1214 cc::TextureMailbox* mailbox, |
| 1209 scoped_ptr<cc::SingleReleaseCallback>* release_callback, | 1215 scoped_ptr<cc::SingleReleaseCallback>* release_callback, |
| 1210 bool use_shared_memory) { | 1216 bool use_shared_memory) { |
| 1211 return false; | 1217 return false; |
| 1212 } | 1218 } |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1313 // RenderWidgetHostView, public: | 1319 // RenderWidgetHostView, public: |
| 1314 | 1320 |
| 1315 // static | 1321 // static |
| 1316 RenderWidgetHostView* | 1322 RenderWidgetHostView* |
| 1317 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { | 1323 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { |
| 1318 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); | 1324 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); |
| 1319 return new RenderWidgetHostViewAndroid(rwhi, NULL); | 1325 return new RenderWidgetHostViewAndroid(rwhi, NULL); |
| 1320 } | 1326 } |
| 1321 | 1327 |
| 1322 } // namespace content | 1328 } // namespace content |
| OLD | NEW |