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 1189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1200 | 1200 |
1201 if (!success) | 1201 if (!success) |
1202 return scoped_ptr<gfx::GpuMemoryBuffer>(); | 1202 return scoped_ptr<gfx::GpuMemoryBuffer>(); |
1203 | 1203 |
1204 return GpuMemoryBufferImpl::Create( | 1204 return GpuMemoryBufferImpl::Create( |
1205 handle, | 1205 handle, |
1206 gfx::Size(width, height), | 1206 gfx::Size(width, height), |
1207 internalformat).PassAs<gfx::GpuMemoryBuffer>(); | 1207 internalformat).PassAs<gfx::GpuMemoryBuffer>(); |
1208 } | 1208 } |
1209 | 1209 |
| 1210 void RenderThreadImpl::CreateSurfaceTexture( |
| 1211 int32 surface_texture_id, |
| 1212 base::ProcessHandle process_handle, |
| 1213 const CreateSurfaceTextureCallback& callback) { |
| 1214 NOTREACHED(); |
| 1215 } |
| 1216 |
1210 void RenderThreadImpl::DoNotSuspendWebKitSharedTimer() { | 1217 void RenderThreadImpl::DoNotSuspendWebKitSharedTimer() { |
1211 suspend_webkit_shared_timer_ = false; | 1218 suspend_webkit_shared_timer_ = false; |
1212 } | 1219 } |
1213 | 1220 |
1214 void RenderThreadImpl::DoNotNotifyWebKitOfModalLoop() { | 1221 void RenderThreadImpl::DoNotNotifyWebKitOfModalLoop() { |
1215 notify_webkit_of_modal_loop_ = false; | 1222 notify_webkit_of_modal_loop_ = false; |
1216 } | 1223 } |
1217 | 1224 |
1218 void RenderThreadImpl::OnSetZoomLevelForCurrentURL(const std::string& scheme, | 1225 void RenderThreadImpl::OnSetZoomLevelForCurrentURL(const std::string& scheme, |
1219 const std::string& host, | 1226 const std::string& host, |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1521 hidden_widget_count_--; | 1528 hidden_widget_count_--; |
1522 | 1529 |
1523 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1530 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
1524 return; | 1531 return; |
1525 } | 1532 } |
1526 | 1533 |
1527 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1534 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
1528 } | 1535 } |
1529 | 1536 |
1530 } // namespace content | 1537 } // namespace content |
OLD | NEW |