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

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

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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/test/layer_tree_pixel_test.h ('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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // RendererClient implementation. 73 // RendererClient implementation.
74 void SetFullRootLayerDamage() override {} 74 void SetFullRootLayerDamage() override {}
75 75
76 private: 76 private:
77 void ReadbackResult(base::Closure quit_run_loop, 77 void ReadbackResult(base::Closure quit_run_loop,
78 std::unique_ptr<CopyOutputResult> result); 78 std::unique_ptr<CopyOutputResult> result);
79 79
80 bool PixelsMatchReference(const base::FilePath& ref_file, 80 bool PixelsMatchReference(const base::FilePath& ref_file,
81 const PixelComparator& comparator); 81 const PixelComparator& comparator);
82 82
83 std::unique_ptr<gfx::DisableNullDrawGLBindings> enable_pixel_output_; 83 std::unique_ptr<gl::DisableNullDrawGLBindings> enable_pixel_output_;
84 }; 84 };
85 85
86 template<typename RendererType> 86 template<typename RendererType>
87 class RendererPixelTest : public PixelTest { 87 class RendererPixelTest : public PixelTest {
88 public: 88 public:
89 RendererType* renderer() { 89 RendererType* renderer() {
90 return static_cast<RendererType*>(renderer_.get()); 90 return static_cast<RendererType*>(renderer_.get());
91 } 91 }
92 92
93 protected: 93 protected:
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 ForceExpandedViewport(gfx::Size(50, 50)); 165 ForceExpandedViewport(gfx::Size(50, 50));
166 ForceViewportOffset(gfx::Vector2d(10, 20)); 166 ForceViewportOffset(gfx::Vector2d(10, 20));
167 } 167 }
168 168
169 typedef RendererPixelTest<GLRenderer> GLRendererPixelTest; 169 typedef RendererPixelTest<GLRenderer> GLRendererPixelTest;
170 typedef RendererPixelTest<SoftwareRenderer> SoftwareRendererPixelTest; 170 typedef RendererPixelTest<SoftwareRenderer> SoftwareRendererPixelTest;
171 171
172 } // namespace cc 172 } // namespace cc
173 173
174 #endif // CC_TEST_PIXEL_TEST_H_ 174 #endif // CC_TEST_PIXEL_TEST_H_
OLDNEW
« no previous file with comments | « cc/test/layer_tree_pixel_test.h ('k') | cc/test/pixel_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698