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

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

Issue 2035913002: Prevent use of GPU IDC in Resourceless Software Draw (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 4 years, 6 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/surfaces/display.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 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, settings, output_surface, resource_provider) {} 121 : SoftwareRenderer(client,
122 settings,
123 output_surface,
124 resource_provider,
125 true /* use_image_hijack_canvas */) {}
122 }; 126 };
123 127
124 class GLRendererWithFlippedSurface : public GLRenderer { 128 class GLRendererWithFlippedSurface : public GLRenderer {
125 public: 129 public:
126 GLRendererWithFlippedSurface(RendererClient* client, 130 GLRendererWithFlippedSurface(RendererClient* client,
127 const RendererSettings* settings, 131 const RendererSettings* settings,
128 OutputSurface* output_surface, 132 OutputSurface* output_surface,
129 ResourceProvider* resource_provider, 133 ResourceProvider* resource_provider,
130 TextureMailboxDeleter* texture_mailbox_deleter, 134 TextureMailboxDeleter* texture_mailbox_deleter,
131 int highp_threshold_min) 135 int highp_threshold_min)
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 ForceExpandedViewport(gfx::Size(50, 50)); 169 ForceExpandedViewport(gfx::Size(50, 50));
166 ForceViewportOffset(gfx::Vector2d(10, 20)); 170 ForceViewportOffset(gfx::Vector2d(10, 20));
167 } 171 }
168 172
169 typedef RendererPixelTest<GLRenderer> GLRendererPixelTest; 173 typedef RendererPixelTest<GLRenderer> GLRendererPixelTest;
170 typedef RendererPixelTest<SoftwareRenderer> SoftwareRendererPixelTest; 174 typedef RendererPixelTest<SoftwareRenderer> SoftwareRendererPixelTest;
171 175
172 } // namespace cc 176 } // namespace cc
173 177
174 #endif // CC_TEST_PIXEL_TEST_H_ 178 #endif // CC_TEST_PIXEL_TEST_H_
OLDNEW
« no previous file with comments | « cc/surfaces/display.cc ('k') | cc/test/pixel_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698