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

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

Issue 2962073002: OOPIF support for layout test pixel dumps.
Patch Set: Rebasing on top of 8bc8e844008b (still works locally). Created 3 years, 5 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
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 2041 matching lines...) Expand 10 before | Expand all | Expand 10 after
2052 if (IsAsyncWorkerContextEnabled()) 2052 if (IsAsyncWorkerContextEnabled())
2053 share_context = nullptr; 2053 share_context = nullptr;
2054 2054
2055 scoped_refptr<ui::ContextProviderCommandBuffer> context_provider( 2055 scoped_refptr<ui::ContextProviderCommandBuffer> context_provider(
2056 new ui::ContextProviderCommandBuffer( 2056 new ui::ContextProviderCommandBuffer(
2057 gpu_channel_host, kGpuStreamIdDefault, kGpuStreamPriorityDefault, 2057 gpu_channel_host, kGpuStreamIdDefault, kGpuStreamPriorityDefault,
2058 gpu::kNullSurfaceHandle, url, automatic_flushes, support_locking, 2058 gpu::kNullSurfaceHandle, url, automatic_flushes, support_locking,
2059 limits, attributes, share_context, 2059 limits, attributes, share_context,
2060 ui::command_buffer_metrics::RENDER_COMPOSITOR_CONTEXT)); 2060 ui::command_buffer_metrics::RENDER_COMPOSITOR_CONTEXT));
2061 2061
2062 if (layout_test_deps_) {
2063 callback.Run(layout_test_deps_->CreateLayerTreeFrameSink(
2064 routing_id, std::move(gpu_channel_host), std::move(context_provider),
2065 std::move(worker_context_provider), GetGpuMemoryBufferManager(), this));
2066 return;
2067 }
2068
2069 #if defined(OS_ANDROID) 2062 #if defined(OS_ANDROID)
2070 if (sync_compositor_message_filter_) { 2063 if (sync_compositor_message_filter_) {
2071 std::unique_ptr<cc::BeginFrameSource> begin_frame_source = 2064 std::unique_ptr<cc::BeginFrameSource> begin_frame_source =
2072 synthetic_begin_frame_source 2065 synthetic_begin_frame_source
2073 ? std::move(synthetic_begin_frame_source) 2066 ? std::move(synthetic_begin_frame_source)
2074 : CreateExternalBeginFrameSource(routing_id); 2067 : CreateExternalBeginFrameSource(routing_id);
2075 callback.Run(base::MakeUnique<SynchronousLayerTreeFrameSink>( 2068 callback.Run(base::MakeUnique<SynchronousLayerTreeFrameSink>(
2076 std::move(context_provider), std::move(worker_context_provider), 2069 std::move(context_provider), std::move(worker_context_provider),
2077 GetGpuMemoryBufferManager(), shared_bitmap_manager(), routing_id, 2070 GetGpuMemoryBufferManager(), shared_bitmap_manager(), routing_id,
2078 g_next_layer_tree_frame_sink_id++, std::move(begin_frame_source), 2071 g_next_layer_tree_frame_sink_id++, std::move(begin_frame_source),
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
2545 } 2538 }
2546 } 2539 }
2547 2540
2548 void RenderThreadImpl::OnRendererInterfaceRequest( 2541 void RenderThreadImpl::OnRendererInterfaceRequest(
2549 mojom::RendererAssociatedRequest request) { 2542 mojom::RendererAssociatedRequest request) {
2550 DCHECK(!renderer_binding_.is_bound()); 2543 DCHECK(!renderer_binding_.is_bound());
2551 renderer_binding_.Bind(std::move(request)); 2544 renderer_binding_.Bind(std::move(request));
2552 } 2545 }
2553 2546
2554 } // namespace content 2547 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/layout_test_dependencies.h ('k') | content/shell/browser/layout_test/blink_test_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698