Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(346)

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 2706453003: switch to new ImageGenerator API (Closed)
Patch Set: fix new site in tile_manager_unittest.cc Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/tiles/tile_manager_unittest.cc ('k') | media/renderers/skcanvas_video_renderer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « cc/tiles/tile_manager_unittest.cc ('k') | media/renderers/skcanvas_video_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698