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

Side by Side Diff: cc/test/pixel_test.h

Issue 2769863003: cc: Add pixel tests for transfer function shaders (Closed)
Patch Set: Leave transfer substitutions unchanged Created 3 years, 9 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/output/renderer_pixeltest.cc ('k') | cc/test/pixel_test.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 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 "base/files/file_util.h" 5 #include "base/files/file_util.h"
6 #include "cc/output/gl_renderer.h" 6 #include "cc/output/gl_renderer.h"
7 #include "cc/output/software_renderer.h" 7 #include "cc/output/software_renderer.h"
8 #include "cc/quads/render_pass.h" 8 #include "cc/quads/render_pass.h"
9 #include "cc/test/pixel_comparator.h" 9 #include "cc/test/pixel_comparator.h"
10 #include "cc/trees/layer_tree_settings.h" 10 #include "cc/trees/layer_tree_settings.h"
(...skipping 16 matching lines...) Expand all
27 27
28 class PixelTest : public testing::Test { 28 class PixelTest : public testing::Test {
29 protected: 29 protected:
30 PixelTest(); 30 PixelTest();
31 ~PixelTest() override; 31 ~PixelTest() override;
32 32
33 bool RunPixelTest(RenderPassList* pass_list, 33 bool RunPixelTest(RenderPassList* pass_list,
34 const base::FilePath& ref_file, 34 const base::FilePath& ref_file,
35 const PixelComparator& comparator); 35 const PixelComparator& comparator);
36 36
37 bool RunPixelTest(RenderPassList* pass_list,
38 std::vector<SkColor>* ref_pixels,
39 const PixelComparator& comparator);
40
37 bool RunPixelTestWithReadbackTarget( 41 bool RunPixelTestWithReadbackTarget(
38 RenderPassList* pass_list, 42 RenderPassList* pass_list,
39 RenderPass* target, 43 RenderPass* target,
40 const base::FilePath& ref_file, 44 const base::FilePath& ref_file,
41 const PixelComparator& comparator); 45 const PixelComparator& comparator);
42 46
43 bool RunPixelTestWithReadbackTargetAndArea(RenderPassList* pass_list, 47 bool RunPixelTestWithReadbackTargetAndArea(RenderPassList* pass_list,
44 RenderPass* target, 48 RenderPass* target,
45 const base::FilePath& ref_file, 49 const base::FilePath& ref_file,
46 const PixelComparator& comparator, 50 const PixelComparator& comparator,
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 inline void RendererPixelTest<SoftwareRendererWithExpandedViewport>::SetUp() { 156 inline void RendererPixelTest<SoftwareRendererWithExpandedViewport>::SetUp() {
153 SetUpSoftwareRenderer(); 157 SetUpSoftwareRenderer();
154 } 158 }
155 159
156 typedef RendererPixelTest<GLRenderer> GLRendererPixelTest; 160 typedef RendererPixelTest<GLRenderer> GLRendererPixelTest;
157 typedef RendererPixelTest<SoftwareRenderer> SoftwareRendererPixelTest; 161 typedef RendererPixelTest<SoftwareRenderer> SoftwareRendererPixelTest;
158 162
159 } // namespace cc 163 } // namespace cc
160 164
161 #endif // CC_TEST_PIXEL_TEST_H_ 165 #endif // CC_TEST_PIXEL_TEST_H_
OLDNEW
« no previous file with comments | « cc/output/renderer_pixeltest.cc ('k') | cc/test/pixel_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698