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

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

Issue 2654993004: Move GPU blacklist calculation to GPU proc (Closed)
Patch Set: fix win clang build 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_impl_unittest.cc ('k') | cc/trees/layer_tree_host_pixeltest_tiles.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "build/build_config.h" 5 #include "build/build_config.h"
6 #include "cc/layers/content_layer_client.h" 6 #include "cc/layers/content_layer_client.h"
7 #include "cc/layers/picture_image_layer.h" 7 #include "cc/layers/picture_image_layer.h"
8 #include "cc/layers/picture_layer.h" 8 #include "cc/layers/picture_layer.h"
9 #include "cc/layers/solid_color_layer.h" 9 #include "cc/layers/solid_color_layer.h"
10 #include "cc/test/fake_content_layer_client.h" 10 #include "cc/test/fake_content_layer_client.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 RunSingleThreadedPixelTest( 45 RunSingleThreadedPixelTest(
46 PIXEL_TEST_GL, root, base::FilePath(FILE_PATH_LITERAL("green.png"))); 46 PIXEL_TEST_GL, root, base::FilePath(FILE_PATH_LITERAL("green.png")));
47 } 47 }
48 48
49 class LayerTreeHostSynchronousGPUPixelTest : public LayerTreePixelTest { 49 class LayerTreeHostSynchronousGPUPixelTest : public LayerTreePixelTest {
50 public: 50 public:
51 void InitializeSettings(LayerTreeSettings* settings) override { 51 void InitializeSettings(LayerTreeSettings* settings) override {
52 LayerTreePixelTest::InitializeSettings(settings); 52 LayerTreePixelTest::InitializeSettings(settings);
53 settings->single_thread_proxy_scheduler = false; 53 settings->single_thread_proxy_scheduler = false;
54 settings->gpu_rasterization_enabled = true;
55 settings->gpu_rasterization_forced = true; 54 settings->gpu_rasterization_forced = true;
56 } 55 }
57 56
58 void BeginTest() override { 57 void BeginTest() override {
59 LayerTreePixelTest::BeginTest(); 58 LayerTreePixelTest::BeginTest();
60 PostCompositeImmediatelyToMainThread(); 59 PostCompositeImmediatelyToMainThread();
61 } 60 }
62 }; 61 };
63 62
64 TEST_F(LayerTreeHostSynchronousGPUPixelTest, OneContentLayer) { 63 TEST_F(LayerTreeHostSynchronousGPUPixelTest, OneContentLayer) {
(...skipping 10 matching lines...) Expand all
75 root->SetIsDrawable(true); 74 root->SetIsDrawable(true);
76 75
77 RunSingleThreadedPixelTest(PIXEL_TEST_GL, root, 76 RunSingleThreadedPixelTest(PIXEL_TEST_GL, root,
78 base::FilePath(FILE_PATH_LITERAL("green.png"))); 77 base::FilePath(FILE_PATH_LITERAL("green.png")));
79 } 78 }
80 79
81 } // namespace 80 } // namespace
82 } // namespace cc 81 } // namespace cc
83 82
84 #endif // OS_ANDROID 83 #endif // OS_ANDROID
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_host_pixeltest_tiles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698