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

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

Issue 754433003: Update from https://crrev.com/305340 (Closed) Base URL: git@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.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 "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 protected: 95 protected:
96 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 RendererSettings* settings,
105 OutputSurface* output_surface, 105 OutputSurface* output_surface,
106 ResourceProvider* resource_provider, 106 ResourceProvider* resource_provider,
107 TextureMailboxDeleter* texture_mailbox_deleter, 107 TextureMailboxDeleter* texture_mailbox_deleter,
108 int highp_threshold_min) 108 int highp_threshold_min)
109 : GLRenderer(client, 109 : GLRenderer(client,
110 settings, 110 settings,
111 output_surface, 111 output_surface,
112 resource_provider, 112 resource_provider,
113 texture_mailbox_deleter, 113 texture_mailbox_deleter,
114 highp_threshold_min) {} 114 highp_threshold_min) {}
115 }; 115 };
116 116
117 class SoftwareRendererWithExpandedViewport : public SoftwareRenderer { 117 class SoftwareRendererWithExpandedViewport : public SoftwareRenderer {
118 public: 118 public:
119 SoftwareRendererWithExpandedViewport(RendererClient* client, 119 SoftwareRendererWithExpandedViewport(RendererClient* client,
120 const LayerTreeSettings* settings, 120 const RendererSettings* settings,
121 OutputSurface* output_surface, 121 OutputSurface* output_surface,
122 ResourceProvider* resource_provider) 122 ResourceProvider* resource_provider)
123 : SoftwareRenderer(client, settings, output_surface, resource_provider) {} 123 : SoftwareRenderer(client, settings, output_surface, resource_provider) {}
124 }; 124 };
125 125
126 class GLRendererWithFlippedSurface : public GLRenderer { 126 class GLRendererWithFlippedSurface : public GLRenderer {
127 public: 127 public:
128 GLRendererWithFlippedSurface(RendererClient* client, 128 GLRendererWithFlippedSurface(RendererClient* client,
129 const LayerTreeSettings* settings, 129 const RendererSettings* settings,
130 OutputSurface* output_surface, 130 OutputSurface* output_surface,
131 ResourceProvider* resource_provider, 131 ResourceProvider* resource_provider,
132 TextureMailboxDeleter* texture_mailbox_deleter, 132 TextureMailboxDeleter* texture_mailbox_deleter,
133 int highp_threshold_min) 133 int highp_threshold_min)
134 : GLRenderer(client, 134 : GLRenderer(client,
135 settings, 135 settings,
136 output_surface, 136 output_surface,
137 resource_provider, 137 resource_provider,
138 texture_mailbox_deleter, 138 texture_mailbox_deleter,
139 highp_threshold_min) {} 139 highp_threshold_min) {}
(...skipping 83 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.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698