| 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 1155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1166 success = sync_message_filter()->Send(message); | 1166 success = sync_message_filter()->Send(message); |
| 1167 | 1167 |
| 1168 if (!success) | 1168 if (!success) |
| 1169 return scoped_ptr<gfx::GpuMemoryBuffer>(); | 1169 return scoped_ptr<gfx::GpuMemoryBuffer>(); |
| 1170 | 1170 |
| 1171 return GpuMemoryBufferImpl::CreateFromHandle( | 1171 return GpuMemoryBufferImpl::CreateFromHandle( |
| 1172 handle, gfx::Size(width, height), internalformat) | 1172 handle, gfx::Size(width, height), internalformat) |
| 1173 .PassAs<gfx::GpuMemoryBuffer>(); | 1173 .PassAs<gfx::GpuMemoryBuffer>(); |
| 1174 } | 1174 } |
| 1175 | 1175 |
| 1176 void RenderThreadImpl::AllocateGpuMemoryBufferAsync( |
| 1177 const gfx::GpuMemoryBufferParams& params, |
| 1178 const AllocateGpuMemoryBufferCallback& callback) { |
| 1179 NOTREACHED(); |
| 1180 } |
| 1181 |
| 1176 void RenderThreadImpl::AcceptConnection( | 1182 void RenderThreadImpl::AcceptConnection( |
| 1177 const mojo::String& service_name, | 1183 const mojo::String& service_name, |
| 1178 mojo::ScopedMessagePipeHandle message_pipe) { | 1184 mojo::ScopedMessagePipeHandle message_pipe) { |
| 1179 // TODO(darin): Invent some kind of registration system to use here. | 1185 // TODO(darin): Invent some kind of registration system to use here. |
| 1180 if (service_name.To<base::StringPiece>() == kRendererService_WebUISetup) { | 1186 if (service_name.To<base::StringPiece>() == kRendererService_WebUISetup) { |
| 1181 WebUISetupImpl::Bind(message_pipe.Pass()); | 1187 WebUISetupImpl::Bind(message_pipe.Pass()); |
| 1182 } else { | 1188 } else { |
| 1183 NOTREACHED() << "Unknown service name"; | 1189 NOTREACHED() << "Unknown service name"; |
| 1184 } | 1190 } |
| 1185 } | 1191 } |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1508 hidden_widget_count_--; | 1514 hidden_widget_count_--; |
| 1509 | 1515 |
| 1510 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1516 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
| 1511 return; | 1517 return; |
| 1512 } | 1518 } |
| 1513 | 1519 |
| 1514 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1520 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
| 1515 } | 1521 } |
| 1516 | 1522 |
| 1517 } // namespace content | 1523 } // namespace content |
| OLD | NEW |