| 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_path.h" | 5 #include "base/files/file_path.h" |
| 6 #include "base/memory/ref_counted.h" | 6 #include "base/memory/ref_counted.h" |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "cc/layers/solid_color_layer.h" | 8 #include "cc/layers/solid_color_layer.h" |
| 9 #include "cc/test/layer_tree_test.h" | 9 #include "cc/test/layer_tree_test.h" |
| 10 | 10 |
| 11 #ifndef CC_TEST_LAYER_TREE_PIXEL_TEST_H_ | 11 #ifndef CC_TEST_LAYER_TREE_PIXEL_TEST_H_ |
| 12 #define CC_TEST_LAYER_TREE_PIXEL_TEST_H_ | 12 #define CC_TEST_LAYER_TREE_PIXEL_TEST_H_ |
| 13 | 13 |
| 14 class SkBitmap; | 14 class SkBitmap; |
| 15 | 15 |
| 16 namespace cc { | 16 namespace cc { |
| 17 class CopyOutputRequest; | 17 class CopyOutputRequest; |
| 18 class CopyOutputResult; | 18 class CopyOutputResult; |
| 19 class LayerTreeHost; | 19 class LayerTreeHost; |
| 20 class PixelComparator; | 20 class PixelComparator; |
| 21 class TextureMailbox; | 21 class TextureMailbox; |
| 22 | 22 |
| 23 class LayerTreePixelTest : public LayerTreeTest { | 23 class LayerTreePixelTest : public LayerTreeTest { |
| 24 protected: | 24 protected: |
| 25 LayerTreePixelTest(); | 25 LayerTreePixelTest(); |
| 26 virtual ~LayerTreePixelTest(); | 26 virtual ~LayerTreePixelTest(); |
| 27 | 27 |
| 28 virtual scoped_ptr<OutputSurface> CreateOutputSurface() OVERRIDE; | 28 virtual scoped_ptr<OutputSurface> CreateOutputSurface(bool fallback) OVERRIDE; |
| 29 virtual scoped_refptr<cc::ContextProvider> | 29 virtual scoped_refptr<cc::ContextProvider> |
| 30 OffscreenContextProviderForMainThread() OVERRIDE; | 30 OffscreenContextProviderForMainThread() OVERRIDE; |
| 31 virtual scoped_refptr<cc::ContextProvider> | 31 virtual scoped_refptr<cc::ContextProvider> |
| 32 OffscreenContextProviderForCompositorThread() OVERRIDE; | 32 OffscreenContextProviderForCompositorThread() OVERRIDE; |
| 33 | 33 |
| 34 virtual scoped_ptr<CopyOutputRequest> CreateCopyOutputRequest(); | 34 virtual scoped_ptr<CopyOutputRequest> CreateCopyOutputRequest(); |
| 35 | 35 |
| 36 void ReadbackResult(scoped_ptr<CopyOutputResult> result); | 36 void ReadbackResult(scoped_ptr<CopyOutputResult> result); |
| 37 | 37 |
| 38 virtual void BeginTest() OVERRIDE; | 38 virtual void BeginTest() OVERRIDE; |
| 39 virtual void SetupTree() OVERRIDE; | 39 virtual void SetupTree() OVERRIDE; |
| 40 virtual void AfterTest() OVERRIDE; | 40 virtual void AfterTest() OVERRIDE; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 PixelTestType test_type_; | 80 PixelTestType test_type_; |
| 81 scoped_refptr<Layer> content_root_; | 81 scoped_refptr<Layer> content_root_; |
| 82 Layer* readback_target_; | 82 Layer* readback_target_; |
| 83 base::FilePath ref_file_; | 83 base::FilePath ref_file_; |
| 84 scoped_ptr<SkBitmap> result_bitmap_; | 84 scoped_ptr<SkBitmap> result_bitmap_; |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 } // namespace cc | 87 } // namespace cc |
| 88 | 88 |
| 89 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_ | 89 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_ |
| OLD | NEW |