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::AcceptConnection( | 1176 void RenderThreadImpl::ConnectToService( |
1177 const mojo::String& service_name, | 1177 const mojo::String& service_name, |
1178 mojo::ScopedMessagePipeHandle message_pipe) { | 1178 mojo::ScopedMessagePipeHandle message_pipe) { |
1179 // TODO(darin): Invent some kind of registration system to use here. | 1179 // TODO(darin): Invent some kind of registration system to use here. |
1180 if (service_name.To<base::StringPiece>() == kRendererService_WebUISetup) { | 1180 if (service_name.To<base::StringPiece>() == kRendererService_WebUISetup) { |
1181 WebUISetupImpl::Bind(message_pipe.Pass()); | 1181 WebUISetupImpl::Bind(message_pipe.Pass()); |
1182 } else { | 1182 } else { |
1183 NOTREACHED() << "Unknown service name"; | 1183 NOTREACHED() << "Unknown service name"; |
1184 } | 1184 } |
1185 } | 1185 } |
1186 | 1186 |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1508 hidden_widget_count_--; | 1508 hidden_widget_count_--; |
1509 | 1509 |
1510 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1510 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
1511 return; | 1511 return; |
1512 } | 1512 } |
1513 | 1513 |
1514 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1514 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
1515 } | 1515 } |
1516 | 1516 |
1517 } // namespace content | 1517 } // namespace content |
OLD | NEW |