| 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; |
| 65 | 66 |
| 66 private: | 67 private: |
| 67 void ReadbackResult(base::Closure quit_run_loop, | 68 void ReadbackResult(base::Closure quit_run_loop, |
| 68 scoped_ptr<CopyOutputResult> result); | 69 scoped_ptr<CopyOutputResult> result); |
| 69 | 70 |
| 70 bool PixelsMatchReference(const base::FilePath& ref_file, | 71 bool PixelsMatchReference(const base::FilePath& ref_file, |
| 71 const PixelComparator& comparator); | 72 const PixelComparator& comparator); |
| 72 | 73 |
| 73 scoped_ptr<gfx::DisableNullDrawGLBindings> enable_pixel_output_; | 74 scoped_ptr<gfx::DisableNullDrawGLBindings> enable_pixel_output_; |
| 74 }; | 75 }; |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 SoftwareRendererWithExpandedViewport>::ExpandedViewport() const { | 182 SoftwareRendererWithExpandedViewport>::ExpandedViewport() const { |
| 182 return true; | 183 return true; |
| 183 } | 184 } |
| 184 | 185 |
| 185 typedef RendererPixelTest<GLRenderer> GLRendererPixelTest; | 186 typedef RendererPixelTest<GLRenderer> GLRendererPixelTest; |
| 186 typedef RendererPixelTest<SoftwareRenderer> SoftwareRendererPixelTest; | 187 typedef RendererPixelTest<SoftwareRenderer> SoftwareRendererPixelTest; |
| 187 | 188 |
| 188 } // namespace cc | 189 } // namespace cc |
| 189 | 190 |
| 190 #endif // CC_TEST_PIXEL_TEST_H_ | 191 #endif // CC_TEST_PIXEL_TEST_H_ |
| OLD | NEW |