| 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/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 "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 11 #include "ui/gfx/geometry/size.h" | 11 #include "ui/gfx/geometry/size.h" |
| 12 #include "ui/gl/gl_implementation.h" | 12 #include "ui/gl/gl_implementation.h" |
| 13 | 13 |
| 14 #ifndef CC_TEST_PIXEL_TEST_H_ | 14 #ifndef CC_TEST_PIXEL_TEST_H_ |
| 15 #define CC_TEST_PIXEL_TEST_H_ | 15 #define CC_TEST_PIXEL_TEST_H_ |
| 16 | 16 |
| 17 namespace cc { | 17 namespace cc { |
| 18 class CopyOutputResult; | 18 class CopyOutputResult; |
| 19 class DirectRenderer; | 19 class DirectRenderer; |
| 20 class FakeOutputSurfaceClient; | 20 class FakeOutputSurfaceClient; |
| 21 class OutputSurface; | 21 class OutputSurface; |
| 22 class ResourceProvider; | 22 class ResourceProvider; |
| 23 class SoftwareRenderer; | 23 class SoftwareRenderer; |
| 24 class TestGpuMemoryBufferManager; | 24 class TestGpuMemoryBufferManager; |
| 25 class TestSharedBitmapManager; | 25 class TestSharedBitmapManager; |
| 26 | 26 |
| 27 class PixelTest : public testing::Test, RendererClient { | 27 class PixelTest : public testing::Test, RendererClient { |
| 28 protected: | 28 protected: |
| 29 PixelTest(); | 29 PixelTest(); |
| 30 virtual ~PixelTest(); | 30 ~PixelTest() override; |
| 31 | 31 |
| 32 bool RunPixelTest(RenderPassList* pass_list, | 32 bool RunPixelTest(RenderPassList* pass_list, |
| 33 const base::FilePath& ref_file, | 33 const base::FilePath& ref_file, |
| 34 const PixelComparator& comparator); | 34 const PixelComparator& comparator); |
| 35 | 35 |
| 36 bool RunPixelTestWithReadbackTarget( | 36 bool RunPixelTestWithReadbackTarget( |
| 37 RenderPassList* pass_list, | 37 RenderPassList* pass_list, |
| 38 RenderPass* target, | 38 RenderPass* target, |
| 39 const base::FilePath& ref_file, | 39 const base::FilePath& ref_file, |
| 40 const PixelComparator& comparator); | 40 const PixelComparator& comparator); |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 SoftwareRendererWithExpandedViewport>::ExpandedViewport() const { | 223 SoftwareRendererWithExpandedViewport>::ExpandedViewport() const { |
| 224 return true; | 224 return true; |
| 225 } | 225 } |
| 226 | 226 |
| 227 typedef RendererPixelTest<GLRenderer> GLRendererPixelTest; | 227 typedef RendererPixelTest<GLRenderer> GLRendererPixelTest; |
| 228 typedef RendererPixelTest<SoftwareRenderer> SoftwareRendererPixelTest; | 228 typedef RendererPixelTest<SoftwareRenderer> SoftwareRendererPixelTest; |
| 229 | 229 |
| 230 } // namespace cc | 230 } // namespace cc |
| 231 | 231 |
| 232 #endif // CC_TEST_PIXEL_TEST_H_ | 232 #endif // CC_TEST_PIXEL_TEST_H_ |
| OLD | NEW |