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