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 |
11 #include <utility> | 11 #include <utility> |
12 | 12 |
13 #include "base/android/jni_android.h" | 13 #include "base/android/jni_android.h" |
14 #include "base/android/scoped_java_ref.h" | 14 #include "base/android/scoped_java_ref.h" |
15 #include "base/auto_reset.h" | 15 #include "base/auto_reset.h" |
16 #include "base/bind.h" | 16 #include "base/bind.h" |
17 #include "base/cancelable_callback.h" | 17 #include "base/cancelable_callback.h" |
18 #include "base/command_line.h" | 18 #include "base/command_line.h" |
19 #include "base/containers/hash_tables.h" | 19 #include "base/containers/hash_tables.h" |
20 #include "base/lazy_instance.h" | 20 #include "base/lazy_instance.h" |
21 #include "base/logging.h" | 21 #include "base/logging.h" |
22 #include "base/memory/ptr_util.h" | 22 #include "base/memory/ptr_util.h" |
23 #include "base/memory/weak_ptr.h" | 23 #include "base/memory/weak_ptr.h" |
24 #include "base/single_thread_task_runner.h" | 24 #include "base/single_thread_task_runner.h" |
25 #include "base/synchronization/lock.h" | 25 #include "base/synchronization/lock.h" |
26 #include "base/sys_info.h" | 26 #include "base/sys_info.h" |
27 #include "base/thread_task_runner_handle.h" | |
28 #include "base/threading/simple_thread.h" | 27 #include "base/threading/simple_thread.h" |
29 #include "base/threading/thread.h" | 28 #include "base/threading/thread.h" |
30 #include "base/threading/thread_checker.h" | 29 #include "base/threading/thread_checker.h" |
| 30 #include "base/threading/thread_task_runner_handle.h" |
31 #include "cc/base/switches.h" | 31 #include "cc/base/switches.h" |
32 #include "cc/input/input_handler.h" | 32 #include "cc/input/input_handler.h" |
33 #include "cc/layers/layer.h" | 33 #include "cc/layers/layer.h" |
34 #include "cc/output/compositor_frame.h" | 34 #include "cc/output/compositor_frame.h" |
35 #include "cc/output/context_provider.h" | 35 #include "cc/output/context_provider.h" |
36 #include "cc/output/output_surface.h" | 36 #include "cc/output/output_surface.h" |
37 #include "cc/output/output_surface_client.h" | 37 #include "cc/output/output_surface_client.h" |
38 #include "cc/output/vulkan_in_process_context_provider.h" | 38 #include "cc/output/vulkan_in_process_context_provider.h" |
39 #include "cc/raster/single_thread_task_graph_runner.h" | 39 #include "cc/raster/single_thread_task_graph_runner.h" |
40 #include "cc/scheduler/begin_frame_source.h" | 40 #include "cc/scheduler/begin_frame_source.h" |
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
779 void CompositorImpl::SetNeedsAnimate() { | 779 void CompositorImpl::SetNeedsAnimate() { |
780 needs_animate_ = true; | 780 needs_animate_ = true; |
781 if (!host_->visible()) | 781 if (!host_->visible()) |
782 return; | 782 return; |
783 | 783 |
784 TRACE_EVENT0("compositor", "Compositor::SetNeedsAnimate"); | 784 TRACE_EVENT0("compositor", "Compositor::SetNeedsAnimate"); |
785 host_->SetNeedsAnimate(); | 785 host_->SetNeedsAnimate(); |
786 } | 786 } |
787 | 787 |
788 } // namespace content | 788 } // namespace content |
OLD | NEW |