| 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 #ifndef CC_TEST_LAYER_TREE_PIXEL_TEST_H_ | 5 #ifndef CC_TEST_LAYER_TREE_PIXEL_TEST_H_ |
| 6 #define CC_TEST_LAYER_TREE_PIXEL_TEST_H_ | 6 #define CC_TEST_LAYER_TREE_PIXEL_TEST_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 enum PixelTestType { | 61 enum PixelTestType { |
| 62 PIXEL_TEST_GL, | 62 PIXEL_TEST_GL, |
| 63 PIXEL_TEST_SOFTWARE, | 63 PIXEL_TEST_SOFTWARE, |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 void RunPixelTest(PixelTestType type, | 66 void RunPixelTest(PixelTestType type, |
| 67 scoped_refptr<Layer> content_root, | 67 scoped_refptr<Layer> content_root, |
| 68 base::FilePath file_name); | 68 base::FilePath file_name); |
| 69 | 69 |
| 70 void RunSingleThreadedPixelTest(PixelTestType test_type, |
| 71 scoped_refptr<Layer> content_root, |
| 72 base::FilePath file_name); |
| 73 |
| 70 void RunPixelTestWithReadbackTarget(PixelTestType type, | 74 void RunPixelTestWithReadbackTarget(PixelTestType type, |
| 71 scoped_refptr<Layer> content_root, | 75 scoped_refptr<Layer> content_root, |
| 72 Layer* target, | 76 Layer* target, |
| 73 base::FilePath file_name); | 77 base::FilePath file_name); |
| 74 | 78 |
| 75 scoped_ptr<SkBitmap> CopyTextureMailboxToBitmap( | 79 scoped_ptr<SkBitmap> CopyTextureMailboxToBitmap( |
| 76 const gfx::Size& size, | 80 const gfx::Size& size, |
| 77 const TextureMailbox& texture_mailbox); | 81 const TextureMailbox& texture_mailbox); |
| 78 | 82 |
| 79 void CopyBitmapToTextureMailboxAsTexture( | 83 void CopyBitmapToTextureMailboxAsTexture( |
| (...skipping 19 matching lines...) Expand all Loading... |
| 99 base::FilePath ref_file_; | 103 base::FilePath ref_file_; |
| 100 scoped_ptr<SkBitmap> result_bitmap_; | 104 scoped_ptr<SkBitmap> result_bitmap_; |
| 101 std::vector<scoped_refptr<TextureLayer>> texture_layers_; | 105 std::vector<scoped_refptr<TextureLayer>> texture_layers_; |
| 102 int pending_texture_mailbox_callbacks_; | 106 int pending_texture_mailbox_callbacks_; |
| 103 bool impl_side_painting_; | 107 bool impl_side_painting_; |
| 104 }; | 108 }; |
| 105 | 109 |
| 106 } // namespace cc | 110 } // namespace cc |
| 107 | 111 |
| 108 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_ | 112 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_ |
| OLD | NEW |