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

Side by Side Diff: cc/test/layer_tree_pixel_test.cc

Issue 2194013002: cc: Delete the Renderer base class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dcheck-delegating
Patch Set: delete-renderer-base-class: rebase 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 | « cc/surfaces/display.cc ('k') | cc/test/test_delegating_output_surface.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "cc/test/layer_tree_pixel_test.h" 5 #include "cc/test/layer_tree_pixel_test.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // Allow resource reclaiming for partial raster tests to get back 54 // Allow resource reclaiming for partial raster tests to get back
55 // resources from the Display. 55 // resources from the Display.
56 bool force_disable_reclaim_resources = false; 56 bool force_disable_reclaim_resources = false;
57 auto delegating_output_surface = 57 auto delegating_output_surface =
58 base::MakeUnique<TestDelegatingOutputSurface>( 58 base::MakeUnique<TestDelegatingOutputSurface>(
59 compositor_context_provider, std::move(worker_context_provider), 59 compositor_context_provider, std::move(worker_context_provider),
60 CreateDisplayOutputSurface(compositor_context_provider), 60 CreateDisplayOutputSurface(compositor_context_provider),
61 shared_bitmap_manager(), gpu_memory_buffer_manager(), 61 shared_bitmap_manager(), gpu_memory_buffer_manager(),
62 RendererSettings(), ImplThreadTaskRunner(), synchronous_composite, 62 RendererSettings(), ImplThreadTaskRunner(), synchronous_composite,
63 force_disable_reclaim_resources); 63 force_disable_reclaim_resources);
64 delegating_output_surface->display()->SetEnlargePassTextureAmountForTesting( 64 delegating_output_surface->SetEnlargePassTextureAmount(
65 enlarge_texture_amount_); 65 enlarge_texture_amount_);
66 return delegating_output_surface; 66 return delegating_output_surface;
67 } 67 }
68 68
69 std::unique_ptr<OutputSurface> LayerTreePixelTest::CreateDisplayOutputSurface( 69 std::unique_ptr<OutputSurface> LayerTreePixelTest::CreateDisplayOutputSurface(
70 scoped_refptr<ContextProvider> compositor_context_provider) { 70 scoped_refptr<ContextProvider> compositor_context_provider) {
71 // Always test Webview shenanigans. 71 // Always test Webview shenanigans.
72 gfx::Size surface_expansion_size(40, 60); 72 gfx::Size surface_expansion_size(40, 60);
73 73
74 std::unique_ptr<PixelTestOutputSurface> display_output_surface; 74 std::unique_ptr<PixelTestOutputSurface> display_output_surface;
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 } 290 }
291 291
292 void LayerTreePixelTest::Finish() { 292 void LayerTreePixelTest::Finish() {
293 std::unique_ptr<gpu::GLInProcessContext> context = 293 std::unique_ptr<gpu::GLInProcessContext> context =
294 CreateTestInProcessContext(); 294 CreateTestInProcessContext();
295 GLES2Interface* gl = context->GetImplementation(); 295 GLES2Interface* gl = context->GetImplementation();
296 gl->Finish(); 296 gl->Finish();
297 } 297 }
298 298
299 } // namespace cc 299 } // namespace cc
OLDNEW
« no previous file with comments | « cc/surfaces/display.cc ('k') | cc/test/test_delegating_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698