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

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

Issue 362073002: cc: Remove all traces of SkPicture cloning. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « cc/test/fake_renderer_client.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/file_util.h" 5 #include "base/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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 void SetUpGLRenderer(bool use_skia_gpu_backend); 55 void SetUpGLRenderer(bool use_skia_gpu_backend);
56 void SetUpSoftwareRenderer(); 56 void SetUpSoftwareRenderer();
57 57
58 void ForceExpandedViewport(const gfx::Size& surface_expansion); 58 void ForceExpandedViewport(const gfx::Size& surface_expansion);
59 void ForceViewportOffset(const gfx::Vector2d& viewport_offset); 59 void ForceViewportOffset(const gfx::Vector2d& viewport_offset);
60 void ForceDeviceClip(const gfx::Rect& clip); 60 void ForceDeviceClip(const gfx::Rect& clip);
61 void EnableExternalStencilTest(); 61 void EnableExternalStencilTest();
62 62
63 // RendererClient implementation. 63 // RendererClient implementation.
64 virtual void SetFullRootLayerDamage() OVERRIDE {} 64 virtual void SetFullRootLayerDamage() OVERRIDE {}
65 virtual void RunOnDemandRasterTask(Task* on_demand_raster_task) OVERRIDE;
66 65
67 private: 66 private:
68 void ReadbackResult(base::Closure quit_run_loop, 67 void ReadbackResult(base::Closure quit_run_loop,
69 scoped_ptr<CopyOutputResult> result); 68 scoped_ptr<CopyOutputResult> result);
70 69
71 bool PixelsMatchReference(const base::FilePath& ref_file, 70 bool PixelsMatchReference(const base::FilePath& ref_file,
72 const PixelComparator& comparator); 71 const PixelComparator& comparator);
73 72
74 scoped_ptr<gfx::DisableNullDrawGLBindings> enable_pixel_output_; 73 scoped_ptr<gfx::DisableNullDrawGLBindings> enable_pixel_output_;
75 }; 74 };
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 SoftwareRendererWithExpandedViewport>::ExpandedViewport() const { 181 SoftwareRendererWithExpandedViewport>::ExpandedViewport() const {
183 return true; 182 return true;
184 } 183 }
185 184
186 typedef RendererPixelTest<GLRenderer> GLRendererPixelTest; 185 typedef RendererPixelTest<GLRenderer> GLRendererPixelTest;
187 typedef RendererPixelTest<SoftwareRenderer> SoftwareRendererPixelTest; 186 typedef RendererPixelTest<SoftwareRenderer> SoftwareRendererPixelTest;
188 187
189 } // namespace cc 188 } // namespace cc
190 189
191 #endif // CC_TEST_PIXEL_TEST_H_ 190 #endif // CC_TEST_PIXEL_TEST_H_
OLDNEW
« no previous file with comments | « cc/test/fake_renderer_client.h ('k') | cc/test/pixel_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698