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

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

Issue 734063004: Update from https://crrev.com/304418 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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_test.cc ('k') | cc/test/pixel_test_utils.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 "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 "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 class RendererPixelTest : public PixelTest { 86 class RendererPixelTest : public PixelTest {
87 public: 87 public:
88 RendererType* renderer() { 88 RendererType* renderer() {
89 return static_cast<RendererType*>(renderer_.get()); 89 return static_cast<RendererType*>(renderer_.get());
90 } 90 }
91 91
92 bool UseSkiaGPUBackend() const; 92 bool UseSkiaGPUBackend() const;
93 bool ExpandedViewport() const; 93 bool ExpandedViewport() const;
94 94
95 protected: 95 protected:
96 virtual void SetUp() override; 96 void SetUp() override;
97 }; 97 };
98 98
99 // Wrappers to differentiate renderers where the the output surface and viewport 99 // Wrappers to differentiate renderers where the the output surface and viewport
100 // have an externally determined size and offset. 100 // have an externally determined size and offset.
101 class GLRendererWithExpandedViewport : public GLRenderer { 101 class GLRendererWithExpandedViewport : public GLRenderer {
102 public: 102 public:
103 GLRendererWithExpandedViewport(RendererClient* client, 103 GLRendererWithExpandedViewport(RendererClient* client,
104 const LayerTreeSettings* settings, 104 const LayerTreeSettings* settings,
105 OutputSurface* output_surface, 105 OutputSurface* output_surface,
106 ResourceProvider* resource_provider, 106 ResourceProvider* resource_provider,
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 SoftwareRendererWithExpandedViewport>::ExpandedViewport() const { 223 SoftwareRendererWithExpandedViewport>::ExpandedViewport() const {
224 return true; 224 return true;
225 } 225 }
226 226
227 typedef RendererPixelTest<GLRenderer> GLRendererPixelTest; 227 typedef RendererPixelTest<GLRenderer> GLRendererPixelTest;
228 typedef RendererPixelTest<SoftwareRenderer> SoftwareRendererPixelTest; 228 typedef RendererPixelTest<SoftwareRenderer> SoftwareRendererPixelTest;
229 229
230 } // namespace cc 230 } // namespace cc
231 231
232 #endif // CC_TEST_PIXEL_TEST_H_ 232 #endif // CC_TEST_PIXEL_TEST_H_
OLDNEW
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/test/pixel_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698