| 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 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1132 init_params, | 1132 init_params, |
| 1133 route_id, | 1133 route_id, |
| 1134 &succeeded); | 1134 &succeeded); |
| 1135 | 1135 |
| 1136 // Allow calling this from the compositor thread. | 1136 // Allow calling this from the compositor thread. |
| 1137 thread_safe_sender()->Send(message); | 1137 thread_safe_sender()->Send(message); |
| 1138 | 1138 |
| 1139 return succeeded; | 1139 return succeeded; |
| 1140 } | 1140 } |
| 1141 | 1141 |
| 1142 void RenderThreadImpl::CreateImage( | |
| 1143 gfx::PluginWindowHandle window, | |
| 1144 int32 image_id, | |
| 1145 const CreateImageCallback& callback) { | |
| 1146 NOTREACHED(); | |
| 1147 } | |
| 1148 | |
| 1149 void RenderThreadImpl::DeleteImage(int32 image_id, int32 sync_point) { | |
| 1150 NOTREACHED(); | |
| 1151 } | |
| 1152 | |
| 1153 scoped_ptr<gfx::GpuMemoryBuffer> RenderThreadImpl::AllocateGpuMemoryBuffer( | 1142 scoped_ptr<gfx::GpuMemoryBuffer> RenderThreadImpl::AllocateGpuMemoryBuffer( |
| 1154 size_t width, | 1143 size_t width, |
| 1155 size_t height, | 1144 size_t height, |
| 1156 unsigned internalformat, | 1145 unsigned internalformat, |
| 1157 unsigned usage) { | 1146 unsigned usage) { |
| 1158 DCHECK(allocate_gpu_memory_buffer_thread_checker_.CalledOnValidThread()); | 1147 DCHECK(allocate_gpu_memory_buffer_thread_checker_.CalledOnValidThread()); |
| 1159 | 1148 |
| 1160 if (!GpuMemoryBufferImpl::IsFormatValid(internalformat)) | 1149 if (!GpuMemoryBufferImpl::IsFormatValid(internalformat)) |
| 1161 return scoped_ptr<gfx::GpuMemoryBuffer>(); | 1150 return scoped_ptr<gfx::GpuMemoryBuffer>(); |
| 1162 | 1151 |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1520 hidden_widget_count_--; | 1509 hidden_widget_count_--; |
| 1521 | 1510 |
| 1522 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1511 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
| 1523 return; | 1512 return; |
| 1524 } | 1513 } |
| 1525 | 1514 |
| 1526 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1515 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
| 1527 } | 1516 } |
| 1528 | 1517 |
| 1529 } // namespace content | 1518 } // namespace content |
| OLD | NEW |