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