| 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/render_thread_impl.h" | 5 #include "content/renderer/render_thread_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1217 | 1217 |
| 1218 CreateCommandBufferResult RenderThreadImpl::CreateViewCommandBuffer( | 1218 CreateCommandBufferResult RenderThreadImpl::CreateViewCommandBuffer( |
| 1219 int32 surface_id, | 1219 int32 surface_id, |
| 1220 const GPUCreateCommandBufferConfig& init_params, | 1220 const GPUCreateCommandBufferConfig& init_params, |
| 1221 int32 route_id) { | 1221 int32 route_id) { |
| 1222 TRACE_EVENT1("gpu", | 1222 TRACE_EVENT1("gpu", |
| 1223 "RenderThreadImpl::CreateViewCommandBuffer", | 1223 "RenderThreadImpl::CreateViewCommandBuffer", |
| 1224 "surface_id", | 1224 "surface_id", |
| 1225 surface_id); | 1225 surface_id); |
| 1226 | 1226 |
| 1227 CreateCommandBufferResult result; | 1227 CreateCommandBufferResult result = CREATE_COMMAND_BUFFER_FAILED; |
| 1228 IPC::Message* message = new GpuHostMsg_CreateViewCommandBuffer( | 1228 IPC::Message* message = new GpuHostMsg_CreateViewCommandBuffer( |
| 1229 surface_id, | 1229 surface_id, |
| 1230 init_params, | 1230 init_params, |
| 1231 route_id, | 1231 route_id, |
| 1232 &result); | 1232 &result); |
| 1233 | 1233 |
| 1234 // Allow calling this from the compositor thread. | 1234 // Allow calling this from the compositor thread. |
| 1235 thread_safe_sender()->Send(message); | 1235 thread_safe_sender()->Send(message); |
| 1236 | 1236 |
| 1237 return result; | 1237 return result; |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1608 hidden_widget_count_--; | 1608 hidden_widget_count_--; |
| 1609 | 1609 |
| 1610 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1610 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
| 1611 return; | 1611 return; |
| 1612 } | 1612 } |
| 1613 | 1613 |
| 1614 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1614 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
| 1615 } | 1615 } |
| 1616 | 1616 |
| 1617 } // namespace content | 1617 } // namespace content |
| OLD | NEW |