| 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 <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "cc/test/layer_tree_test.h" | 10 #include "cc/test/layer_tree_test.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 class PixelComparator; | 21 class PixelComparator; |
| 22 class SolidColorLayer; | 22 class SolidColorLayer; |
| 23 class TextureLayer; | 23 class TextureLayer; |
| 24 class TextureMailbox; | 24 class TextureMailbox; |
| 25 | 25 |
| 26 class LayerTreePixelTest : public LayerTreeTest { | 26 class LayerTreePixelTest : public LayerTreeTest { |
| 27 protected: | 27 protected: |
| 28 LayerTreePixelTest(); | 28 LayerTreePixelTest(); |
| 29 virtual ~LayerTreePixelTest(); | 29 virtual ~LayerTreePixelTest(); |
| 30 | 30 |
| 31 virtual scoped_ptr<OutputSurface> CreateOutputSurface() OVERRIDE; | 31 virtual scoped_ptr<OutputSurface> CreateOutputSurface(bool fallback) OVERRIDE; |
| 32 virtual scoped_refptr<cc::ContextProvider> | 32 virtual scoped_refptr<cc::ContextProvider> |
| 33 OffscreenContextProviderForMainThread() OVERRIDE; | 33 OffscreenContextProviderForMainThread() OVERRIDE; |
| 34 virtual scoped_refptr<cc::ContextProvider> | 34 virtual scoped_refptr<cc::ContextProvider> |
| 35 OffscreenContextProviderForCompositorThread() OVERRIDE; | 35 OffscreenContextProviderForCompositorThread() OVERRIDE; |
| 36 | 36 |
| 37 virtual scoped_ptr<CopyOutputRequest> CreateCopyOutputRequest(); | 37 virtual scoped_ptr<CopyOutputRequest> CreateCopyOutputRequest(); |
| 38 | 38 |
| 39 void ReadbackResult(scoped_ptr<CopyOutputResult> result); | 39 void ReadbackResult(scoped_ptr<CopyOutputResult> result); |
| 40 | 40 |
| 41 virtual void BeginTest() OVERRIDE; | 41 virtual void BeginTest() OVERRIDE; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 Layer* readback_target_; | 96 Layer* readback_target_; |
| 97 base::FilePath ref_file_; | 97 base::FilePath ref_file_; |
| 98 scoped_ptr<SkBitmap> result_bitmap_; | 98 scoped_ptr<SkBitmap> result_bitmap_; |
| 99 std::vector<scoped_refptr<TextureLayer> > texture_layers_; | 99 std::vector<scoped_refptr<TextureLayer> > texture_layers_; |
| 100 int pending_texture_mailbox_callbacks_; | 100 int pending_texture_mailbox_callbacks_; |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 } // namespace cc | 103 } // namespace cc |
| 104 | 104 |
| 105 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_ | 105 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_ |
| OLD | NEW |