| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |