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

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

Issue 2128113002: Use a cc::Display for WebView resourceless software draws. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: displaywebview: dcheck Created 4 years, 5 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
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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 texture_mailbox_deleter, 111 texture_mailbox_deleter,
112 highp_threshold_min) {} 112 highp_threshold_min) {}
113 }; 113 };
114 114
115 class SoftwareRendererWithExpandedViewport : public SoftwareRenderer { 115 class SoftwareRendererWithExpandedViewport : public SoftwareRenderer {
116 public: 116 public:
117 SoftwareRendererWithExpandedViewport(RendererClient* client, 117 SoftwareRendererWithExpandedViewport(RendererClient* client,
118 const RendererSettings* settings, 118 const RendererSettings* settings,
119 OutputSurface* output_surface, 119 OutputSurface* output_surface,
120 ResourceProvider* resource_provider) 120 ResourceProvider* resource_provider)
121 : SoftwareRenderer(client, 121 : SoftwareRenderer(client, settings, output_surface, resource_provider) {}
122 settings,
123 output_surface,
124 resource_provider,
125 true /* use_image_hijack_canvas */) {}
126 }; 122 };
127 123
128 class GLRendererWithFlippedSurface : public GLRenderer { 124 class GLRendererWithFlippedSurface : public GLRenderer {
129 public: 125 public:
130 GLRendererWithFlippedSurface(RendererClient* client, 126 GLRendererWithFlippedSurface(RendererClient* client,
131 const RendererSettings* settings, 127 const RendererSettings* settings,
132 OutputSurface* output_surface, 128 OutputSurface* output_surface,
133 ResourceProvider* resource_provider, 129 ResourceProvider* resource_provider,
134 TextureMailboxDeleter* texture_mailbox_deleter, 130 TextureMailboxDeleter* texture_mailbox_deleter,
135 int highp_threshold_min) 131 int highp_threshold_min)
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 ForceExpandedViewport(gfx::Size(50, 50)); 165 ForceExpandedViewport(gfx::Size(50, 50));
170 ForceViewportOffset(gfx::Vector2d(10, 20)); 166 ForceViewportOffset(gfx::Vector2d(10, 20));
171 } 167 }
172 168
173 typedef RendererPixelTest<GLRenderer> GLRendererPixelTest; 169 typedef RendererPixelTest<GLRenderer> GLRendererPixelTest;
174 typedef RendererPixelTest<SoftwareRenderer> SoftwareRendererPixelTest; 170 typedef RendererPixelTest<SoftwareRenderer> SoftwareRendererPixelTest;
175 171
176 } // namespace cc 172 } // namespace cc
177 173
178 #endif // CC_TEST_PIXEL_TEST_H_ 174 #endif // CC_TEST_PIXEL_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698