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 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1126 route_id, | 1126 route_id, |
1127 &succeeded); | 1127 &succeeded); |
1128 | 1128 |
1129 // Allow calling this from the compositor thread. | 1129 // Allow calling this from the compositor thread. |
1130 thread_safe_sender()->Send(message); | 1130 thread_safe_sender()->Send(message); |
1131 | 1131 |
1132 return succeeded; | 1132 return succeeded; |
1133 } | 1133 } |
1134 | 1134 |
1135 void RenderThreadImpl::CreateImage( | 1135 void RenderThreadImpl::CreateImage( |
1136 gfx::PluginWindowHandle window, | 1136 const gfx::GpuMemoryBufferHandle& handle, |
| 1137 const gfx::Size& size, |
| 1138 unsigned internalformat, |
1137 int32 image_id, | 1139 int32 image_id, |
1138 const CreateImageCallback& callback) { | 1140 const CreateImageCallback& callback) { |
1139 NOTREACHED(); | 1141 NOTREACHED(); |
1140 } | 1142 } |
1141 | 1143 |
1142 void RenderThreadImpl::DeleteImage(int32 image_id, int32 sync_point) { | 1144 void RenderThreadImpl::DeleteImage(int32 image_id, int32 sync_point) { |
1143 NOTREACHED(); | 1145 NOTREACHED(); |
1144 } | 1146 } |
1145 | 1147 |
1146 scoped_ptr<gfx::GpuMemoryBuffer> RenderThreadImpl::AllocateGpuMemoryBuffer( | 1148 scoped_ptr<gfx::GpuMemoryBuffer> RenderThreadImpl::AllocateGpuMemoryBuffer( |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1513 hidden_widget_count_--; | 1515 hidden_widget_count_--; |
1514 | 1516 |
1515 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1517 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
1516 return; | 1518 return; |
1517 } | 1519 } |
1518 | 1520 |
1519 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1521 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
1520 } | 1522 } |
1521 | 1523 |
1522 } // namespace content | 1524 } // namespace content |
OLD | NEW |