| 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 <utility> | 10 #include <utility> |
| (...skipping 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1195 | 1195 |
| 1196 renderer_scheduler_->SetTimerQueueSuspensionWhenBackgroundedEnabled( | 1196 renderer_scheduler_->SetTimerQueueSuspensionWhenBackgroundedEnabled( |
| 1197 GetContentClient() | 1197 GetContentClient() |
| 1198 ->renderer() | 1198 ->renderer() |
| 1199 ->AllowTimerSuspensionWhenProcessBackgrounded()); | 1199 ->AllowTimerSuspensionWhenProcessBackgrounded()); |
| 1200 | 1200 |
| 1201 SkGraphics::SetResourceCacheSingleAllocationByteLimit( | 1201 SkGraphics::SetResourceCacheSingleAllocationByteLimit( |
| 1202 kImageCacheSingleAllocationByteLimit); | 1202 kImageCacheSingleAllocationByteLimit); |
| 1203 | 1203 |
| 1204 // Hook up blink's codecs so skia can call them | 1204 // Hook up blink's codecs so skia can call them |
| 1205 SkGraphics::SetImageGeneratorFromEncodedFactory( | 1205 SkGraphics::SetImageGeneratorFromEncodedDataFactory( |
| 1206 blink::WebImageGenerator::create); | 1206 blink::WebImageGenerator::create); |
| 1207 | 1207 |
| 1208 if (command_line.HasSwitch(switches::kMemoryMetrics)) { | 1208 if (command_line.HasSwitch(switches::kMemoryMetrics)) { |
| 1209 memory_observer_.reset(new MemoryObserver()); | 1209 memory_observer_.reset(new MemoryObserver()); |
| 1210 message_loop()->AddTaskObserver(memory_observer_.get()); | 1210 message_loop()->AddTaskObserver(memory_observer_.get()); |
| 1211 } | 1211 } |
| 1212 | 1212 |
| 1213 if (command_line.HasSwitch(switches::kExplicitlyAllowedPorts)) { | 1213 if (command_line.HasSwitch(switches::kExplicitlyAllowedPorts)) { |
| 1214 std::string allowed_ports = | 1214 std::string allowed_ports = |
| 1215 command_line.GetSwitchValueASCII(switches::kExplicitlyAllowedPorts); | 1215 command_line.GetSwitchValueASCII(switches::kExplicitlyAllowedPorts); |
| (...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2380 } | 2380 } |
| 2381 } | 2381 } |
| 2382 | 2382 |
| 2383 void RenderThreadImpl::OnRendererInterfaceRequest( | 2383 void RenderThreadImpl::OnRendererInterfaceRequest( |
| 2384 mojom::RendererAssociatedRequest request) { | 2384 mojom::RendererAssociatedRequest request) { |
| 2385 DCHECK(!renderer_binding_.is_bound()); | 2385 DCHECK(!renderer_binding_.is_bound()); |
| 2386 renderer_binding_.Bind(std::move(request)); | 2386 renderer_binding_.Bind(std::move(request)); |
| 2387 } | 2387 } |
| 2388 | 2388 |
| 2389 } // namespace content | 2389 } // namespace content |
| OLD | NEW |