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

Side by Side Diff: cc/trees/layer_tree_host_pixeltest_tiles.cc

Issue 2661523003: cc: Merge LayerTree into the LayerTreeHost. (Closed)
Patch Set: auto 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/trees/layer_tree_host_pixeltest_scrollbars.cc ('k') | cc/trees/layer_tree_host_unittest.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include "cc/layers/content_layer_client.h" 7 #include "cc/layers/content_layer_client.h"
8 #include "cc/layers/picture_layer.h" 8 #include "cc/layers/picture_layer.h"
9 #include "cc/output/copy_output_request.h" 9 #include "cc/output/copy_output_request.h"
10 #include "cc/playback/display_item_list.h" 10 #include "cc/playback/display_item_list.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 } 62 }
63 } 63 }
64 64
65 void BeginTest() override { 65 void BeginTest() override {
66 // Don't set up a readback target at the start of the test. 66 // Don't set up a readback target at the start of the test.
67 PostSetNeedsCommitToMainThread(); 67 PostSetNeedsCommitToMainThread();
68 } 68 }
69 69
70 void DoReadback() { 70 void DoReadback() {
71 Layer* target = 71 Layer* target =
72 readback_target_ ? readback_target_ : layer_tree()->root_layer(); 72 readback_target_ ? readback_target_ : layer_tree_host()->root_layer();
73 target->RequestCopyOfOutput(CreateCopyOutputRequest()); 73 target->RequestCopyOfOutput(CreateCopyOutputRequest());
74 } 74 }
75 75
76 void RunRasterPixelTest(bool threaded, 76 void RunRasterPixelTest(bool threaded,
77 RasterMode mode, 77 RasterMode mode,
78 scoped_refptr<Layer> content_root, 78 scoped_refptr<Layer> content_root,
79 base::FilePath file_name) { 79 base::FilePath file_name) {
80 raster_mode_ = mode; 80 raster_mode_ = mode;
81 81
82 PixelTestType test_type = PIXEL_TEST_SOFTWARE; 82 PixelTestType test_type = PIXEL_TEST_SOFTWARE;
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 FullRaster_SingleThread_GpuRaster) { 247 FullRaster_SingleThread_GpuRaster) {
248 RunRasterPixelTest( 248 RunRasterPixelTest(
249 false, FULL_GPU, picture_layer_, 249 false, FULL_GPU, picture_layer_,
250 base::FilePath(FILE_PATH_LITERAL("blue_yellow_flipped.png"))); 250 base::FilePath(FILE_PATH_LITERAL("blue_yellow_flipped.png")));
251 } 251 }
252 252
253 } // namespace 253 } // namespace
254 } // namespace cc 254 } // namespace cc
255 255
256 #endif // !defined(OS_ANDROID) 256 #endif // !defined(OS_ANDROID)
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_pixeltest_scrollbars.cc ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698