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/compositor_impl_android.h" | 5 #include "content/browser/renderer_host/compositor_impl_android.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 #include <stdint.h> | 9 #include <stdint.h> |
10 #include <utility> | 10 #include <utility> |
(...skipping 25 matching lines...) Expand all Loading... |
36 #include "cc/raster/single_thread_task_graph_runner.h" | 36 #include "cc/raster/single_thread_task_graph_runner.h" |
37 #include "cc/scheduler/begin_frame_source.h" | 37 #include "cc/scheduler/begin_frame_source.h" |
38 #include "cc/surfaces/onscreen_display_client.h" | 38 #include "cc/surfaces/onscreen_display_client.h" |
39 #include "cc/surfaces/surface_display_output_surface.h" | 39 #include "cc/surfaces/surface_display_output_surface.h" |
40 #include "cc/surfaces/surface_id_allocator.h" | 40 #include "cc/surfaces/surface_id_allocator.h" |
41 #include "cc/surfaces/surface_manager.h" | 41 #include "cc/surfaces/surface_manager.h" |
42 #include "cc/trees/layer_tree_host.h" | 42 #include "cc/trees/layer_tree_host.h" |
43 #include "cc/trees/layer_tree_settings.h" | 43 #include "cc/trees/layer_tree_settings.h" |
44 #include "content/browser/android/child_process_launcher_android.h" | 44 #include "content/browser/android/child_process_launcher_android.h" |
45 #include "content/browser/compositor/browser_compositor_overlay_candidate_valida
tor_android.h" | 45 #include "content/browser/compositor/browser_compositor_overlay_candidate_valida
tor_android.h" |
| 46 #include "content/browser/compositor/gl_helper.h" |
46 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" | 47 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" |
47 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" | 48 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" |
48 #include "content/browser/gpu/compositor_util.h" | 49 #include "content/browser/gpu/compositor_util.h" |
49 #include "content/browser/gpu/gpu_surface_tracker.h" | 50 #include "content/browser/gpu/gpu_surface_tracker.h" |
50 #include "content/browser/renderer_host/render_widget_host_impl.h" | 51 #include "content/browser/renderer_host/render_widget_host_impl.h" |
51 #include "content/common/gpu/client/command_buffer_proxy_impl.h" | 52 #include "content/common/gpu/client/command_buffer_proxy_impl.h" |
52 #include "content/common/gpu/client/context_provider_command_buffer.h" | 53 #include "content/common/gpu/client/context_provider_command_buffer.h" |
53 #include "content/common/gpu/client/gl_helper.h" | |
54 #include "content/common/gpu/client/gpu_channel_host.h" | 54 #include "content/common/gpu/client/gpu_channel_host.h" |
55 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 55 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
56 #include "content/common/gpu/gpu_process_launch_causes.h" | 56 #include "content/common/gpu/gpu_process_launch_causes.h" |
57 #include "content/common/host_shared_bitmap_manager.h" | 57 #include "content/common/host_shared_bitmap_manager.h" |
58 #include "content/public/browser/android/compositor.h" | 58 #include "content/public/browser/android/compositor.h" |
59 #include "content/public/browser/android/compositor_client.h" | 59 #include "content/public/browser/android/compositor_client.h" |
60 #include "content/public/common/content_switches.h" | 60 #include "content/public/common/content_switches.h" |
61 #include "gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.h" | 61 #include "gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.h" |
62 #include "gpu/command_buffer/client/context_support.h" | 62 #include "gpu/command_buffer/client/context_support.h" |
63 #include "gpu/command_buffer/client/gles2_interface.h" | 63 #include "gpu/command_buffer/client/gles2_interface.h" |
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 | 626 |
627 void CompositorImpl::SetNeedsAnimate() { | 627 void CompositorImpl::SetNeedsAnimate() { |
628 needs_animate_ = true; | 628 needs_animate_ = true; |
629 if (!host_->visible()) | 629 if (!host_->visible()) |
630 return; | 630 return; |
631 | 631 |
632 host_->SetNeedsAnimate(); | 632 host_->SetNeedsAnimate(); |
633 } | 633 } |
634 | 634 |
635 } // namespace content | 635 } // namespace content |
OLD | NEW |