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

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

Issue 2162083005: Use surface copy requests for layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: piman comment Created 4 years, 4 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 | « content/renderer/layout_test_dependencies.h ('k') | content/renderer/render_thread_impl.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 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // If there is a pending asynchronous request, it will be completed by the 232 // If there is a pending asynchronous request, it will be completed by the
233 // time this routine returns. 233 // time this routine returns.
234 scoped_refptr<gpu::GpuChannelHost> EstablishGpuChannelSync(CauseForGpuLaunch); 234 scoped_refptr<gpu::GpuChannelHost> EstablishGpuChannelSync(CauseForGpuLaunch);
235 235
236 std::unique_ptr<cc::OutputSurface> CreateCompositorOutputSurface( 236 std::unique_ptr<cc::OutputSurface> CreateCompositorOutputSurface(
237 bool use_software, 237 bool use_software,
238 int routing_id, 238 int routing_id,
239 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue, 239 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue,
240 const GURL& url); 240 const GURL& url);
241 241
242 std::unique_ptr<cc::SwapPromise> RequestCopyOfOutputForLayoutTest(
243 int32_t routing_id,
244 std::unique_ptr<cc::CopyOutputRequest> request);
245
242 // True if we are running layout tests. This currently disables forwarding 246 // True if we are running layout tests. This currently disables forwarding
243 // various status messages to the console, skips network error pages, and 247 // various status messages to the console, skips network error pages, and
244 // short circuits size update and focus events. 248 // short circuits size update and focus events.
245 bool layout_test_mode() const { return !!layout_test_deps_; } 249 bool layout_test_mode() const { return !!layout_test_deps_; }
246 void set_layout_test_dependencies( 250 void set_layout_test_dependencies(
247 std::unique_ptr<LayoutTestDependencies> deps) { 251 std::unique_ptr<LayoutTestDependencies> deps) {
248 layout_test_deps_ = std::move(deps); 252 layout_test_deps_ = std::move(deps);
249 } 253 }
250 254
251 RendererBlinkPlatformImpl* blink_platform_impl() const { 255 RendererBlinkPlatformImpl* blink_platform_impl() const {
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 707 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
704 }; 708 };
705 709
706 #if defined(COMPILER_MSVC) 710 #if defined(COMPILER_MSVC)
707 #pragma warning(pop) 711 #pragma warning(pop)
708 #endif 712 #endif
709 713
710 } // namespace content 714 } // namespace content
711 715
712 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 716 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/layout_test_dependencies.h ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698