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 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 #include "cc/trees/layer_tree_settings.h" | 45 #include "cc/trees/layer_tree_settings.h" |
46 #include "components/display_compositor/gl_helper.h" | 46 #include "components/display_compositor/gl_helper.h" |
47 #include "content/browser/android/child_process_launcher_android.h" | 47 #include "content/browser/android/child_process_launcher_android.h" |
48 #include "content/browser/compositor/browser_compositor_overlay_candidate_valida
tor_android.h" | 48 #include "content/browser/compositor/browser_compositor_overlay_candidate_valida
tor_android.h" |
49 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" | 49 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" |
50 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" | 50 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" |
51 #include "content/browser/gpu/compositor_util.h" | 51 #include "content/browser/gpu/compositor_util.h" |
52 #include "content/browser/gpu/gpu_surface_tracker.h" | 52 #include "content/browser/gpu/gpu_surface_tracker.h" |
53 #include "content/browser/renderer_host/render_widget_host_impl.h" | 53 #include "content/browser/renderer_host/render_widget_host_impl.h" |
54 #include "content/common/gpu/client/context_provider_command_buffer.h" | 54 #include "content/common/gpu/client/context_provider_command_buffer.h" |
55 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | |
56 #include "content/common/gpu_process_launch_causes.h" | 55 #include "content/common/gpu_process_launch_causes.h" |
57 #include "content/common/host_shared_bitmap_manager.h" | 56 #include "content/common/host_shared_bitmap_manager.h" |
58 #include "content/public/browser/android/compositor.h" | 57 #include "content/public/browser/android/compositor.h" |
59 #include "content/public/browser/android/compositor_client.h" | 58 #include "content/public/browser/android/compositor_client.h" |
60 #include "content/public/common/content_switches.h" | 59 #include "content/public/common/content_switches.h" |
61 #include "gpu/command_buffer/client/context_support.h" | 60 #include "gpu/command_buffer/client/context_support.h" |
62 #include "gpu/command_buffer/client/gles2_interface.h" | 61 #include "gpu/command_buffer/client/gles2_interface.h" |
63 #include "gpu/ipc/client/command_buffer_proxy_impl.h" | 62 #include "gpu/ipc/client/command_buffer_proxy_impl.h" |
64 #include "gpu/ipc/client/gpu_channel_host.h" | 63 #include "gpu/ipc/client/gpu_channel_host.h" |
65 #include "third_party/khronos/GLES2/gl2.h" | 64 #include "third_party/khronos/GLES2/gl2.h" |
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
680 void CompositorImpl::SetNeedsAnimate() { | 679 void CompositorImpl::SetNeedsAnimate() { |
681 needs_animate_ = true; | 680 needs_animate_ = true; |
682 if (!host_->visible()) | 681 if (!host_->visible()) |
683 return; | 682 return; |
684 | 683 |
685 TRACE_EVENT0("compositor", "Compositor::SetNeedsAnimate"); | 684 TRACE_EVENT0("compositor", "Compositor::SetNeedsAnimate"); |
686 host_->SetNeedsAnimate(); | 685 host_->SetNeedsAnimate(); |
687 } | 686 } |
688 | 687 |
689 } // namespace content | 688 } // namespace content |
OLD | NEW |