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/renderer/gpu/compositor_output_surface.h" | 5 #include "content/renderer/gpu/compositor_output_surface.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/message_loop_proxy.h" | 8 #include "base/message_loop_proxy.h" |
9 #include "cc/compositor_frame.h" | 9 #include "cc/compositor_frame.h" |
10 #include "cc/compositor_frame_ack.h" | 10 #include "cc/compositor_frame_ack.h" |
11 #include "cc/output_surface_client.h" | 11 #include "cc/output_surface_client.h" |
| 12 #include "content/common/cc_messages.h" |
12 #include "content/common/view_messages.h" | 13 #include "content/common/view_messages.h" |
13 #include "content/public/common/content_switches.h" | 14 #include "content/public/common/content_switches.h" |
14 #include "content/renderer/render_thread_impl.h" | 15 #include "content/renderer/render_thread_impl.h" |
15 #include "ipc/ipc_forwarding_message_filter.h" | 16 #include "ipc/ipc_forwarding_message_filter.h" |
16 #include "ipc/ipc_sync_channel.h" | 17 #include "ipc/ipc_sync_channel.h" |
17 #include "ipc/ipc_sync_message_filter.h" | 18 #include "ipc/ipc_sync_message_filter.h" |
18 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 19 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" |
19 | 20 |
20 #if defined(OS_ANDROID) | 21 #if defined(OS_ANDROID) |
21 // TODO(epenner): Move thread priorities to base. (crbug.com/170549) | 22 // TODO(epenner): Move thread priorities to base. (crbug.com/170549) |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 // If this is the last surface to stop preferring smoothness, | 162 // If this is the last surface to stop preferring smoothness, |
162 // Reset the main thread's priority to the default. | 163 // Reset the main thread's priority to the default. |
163 if (prefers_smoothness_ == true && | 164 if (prefers_smoothness_ == true && |
164 --g_prefer_smoothness_count == 0) { | 165 --g_prefer_smoothness_count == 0) { |
165 SetThreadsPriorityToDefault(main_thread_id_); | 166 SetThreadsPriorityToDefault(main_thread_id_); |
166 } | 167 } |
167 prefers_smoothness_ = prefers_smoothness; | 168 prefers_smoothness_ = prefers_smoothness; |
168 } | 169 } |
169 | 170 |
170 } // namespace content | 171 } // namespace content |
OLD | NEW |