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/bind.h" | 9 #include "base/bind.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
13 #include "cc/compositor_frame.h" | |
14 #include "cc/compositor_frame_ack.h" | |
15 #include "cc/layer.h" | 13 #include "cc/layer.h" |
| 14 #include "cc/output/compositor_frame.h" |
| 15 #include "cc/output/compositor_frame_ack.h" |
16 #include "cc/texture_layer.h" | 16 #include "cc/texture_layer.h" |
17 #include "content/browser/android/content_view_core_impl.h" | 17 #include "content/browser/android/content_view_core_impl.h" |
18 #include "content/browser/gpu/gpu_surface_tracker.h" | 18 #include "content/browser/gpu/gpu_surface_tracker.h" |
19 #include "content/browser/renderer_host/compositor_impl_android.h" | 19 #include "content/browser/renderer_host/compositor_impl_android.h" |
20 #include "content/browser/renderer_host/image_transport_factory_android.h" | 20 #include "content/browser/renderer_host/image_transport_factory_android.h" |
21 #include "content/browser/renderer_host/render_widget_host_impl.h" | 21 #include "content/browser/renderer_host/render_widget_host_impl.h" |
22 #include "content/browser/renderer_host/surface_texture_transport_client_android
.h" | 22 #include "content/browser/renderer_host/surface_texture_transport_client_android
.h" |
23 #include "content/common/gpu/client/gl_helper.h" | 23 #include "content/common/gpu/client/gl_helper.h" |
24 #include "content/common/gpu/gpu_messages.h" | 24 #include "content/common/gpu/gpu_messages.h" |
25 #include "content/common/view_messages.h" | 25 #include "content/common/view_messages.h" |
26 #include "third_party/khronos/GLES2/gl2.h" | |
27 #include "third_party/khronos/GLES2/gl2ext.h" | |
28 #include "third_party/WebKit/Source/Platform/chromium/public/Platform.h" | 26 #include "third_party/WebKit/Source/Platform/chromium/public/Platform.h" |
29 #include "third_party/WebKit/Source/Platform/chromium/public/WebExternalTextureL
ayer.h" | 27 #include "third_party/WebKit/Source/Platform/chromium/public/WebExternalTextureL
ayer.h" |
30 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" | 28 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" |
| 29 #include "third_party/khronos/GLES2/gl2.h" |
| 30 #include "third_party/khronos/GLES2/gl2ext.h" |
31 #include "ui/gfx/android/device_display_info.h" | 31 #include "ui/gfx/android/device_display_info.h" |
32 #include "ui/gfx/android/java_bitmap.h" | 32 #include "ui/gfx/android/java_bitmap.h" |
33 #include "ui/gfx/display.h" | 33 #include "ui/gfx/display.h" |
34 #include "ui/gfx/screen.h" | 34 #include "ui/gfx/screen.h" |
35 #include "ui/gfx/size_conversions.h" | 35 #include "ui/gfx/size_conversions.h" |
36 #include "webkit/compositor_bindings/web_compositor_support_impl.h" | 36 #include "webkit/compositor_bindings/web_compositor_support_impl.h" |
37 | 37 |
38 namespace content { | 38 namespace content { |
39 | 39 |
40 namespace { | 40 namespace { |
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
743 // RenderWidgetHostView, public: | 743 // RenderWidgetHostView, public: |
744 | 744 |
745 // static | 745 // static |
746 RenderWidgetHostView* | 746 RenderWidgetHostView* |
747 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { | 747 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { |
748 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); | 748 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); |
749 return new RenderWidgetHostViewAndroid(rwhi, NULL); | 749 return new RenderWidgetHostViewAndroid(rwhi, NULL); |
750 } | 750 } |
751 | 751 |
752 } // namespace content | 752 } // namespace content |
OLD | NEW |