| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 GL_WITH_DEFAULT, | 62 GL_WITH_DEFAULT, |
| 63 GL_WITH_BITMAP, | 63 GL_WITH_BITMAP, |
| 64 SOFTWARE_WITH_DEFAULT, | 64 SOFTWARE_WITH_DEFAULT, |
| 65 SOFTWARE_WITH_BITMAP | 65 SOFTWARE_WITH_BITMAP |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 void RunPixelTest(PixelTestType type, | 68 void RunPixelTest(PixelTestType type, |
| 69 scoped_refptr<Layer> content_root, | 69 scoped_refptr<Layer> content_root, |
| 70 base::FilePath file_name); | 70 base::FilePath file_name); |
| 71 | 71 |
| 72 void RunSingleThreadedPixelTest(PixelTestType test_type, |
| 73 scoped_refptr<Layer> content_root, |
| 74 base::FilePath file_name); |
| 75 |
| 72 void RunPixelTestWithReadbackTarget(PixelTestType type, | 76 void RunPixelTestWithReadbackTarget(PixelTestType type, |
| 73 scoped_refptr<Layer> content_root, | 77 scoped_refptr<Layer> content_root, |
| 74 Layer* target, | 78 Layer* target, |
| 75 base::FilePath file_name); | 79 base::FilePath file_name); |
| 76 | 80 |
| 77 scoped_ptr<SkBitmap> CopyTextureMailboxToBitmap( | 81 scoped_ptr<SkBitmap> CopyTextureMailboxToBitmap( |
| 78 const gfx::Size& size, | 82 const gfx::Size& size, |
| 79 const TextureMailbox& texture_mailbox); | 83 const TextureMailbox& texture_mailbox); |
| 80 | 84 |
| 81 void CopyBitmapToTextureMailboxAsTexture( | 85 void CopyBitmapToTextureMailboxAsTexture( |
| (...skipping 19 matching lines...) Expand all Loading... |
| 101 base::FilePath ref_file_; | 105 base::FilePath ref_file_; |
| 102 scoped_ptr<SkBitmap> result_bitmap_; | 106 scoped_ptr<SkBitmap> result_bitmap_; |
| 103 std::vector<scoped_refptr<TextureLayer>> texture_layers_; | 107 std::vector<scoped_refptr<TextureLayer>> texture_layers_; |
| 104 int pending_texture_mailbox_callbacks_; | 108 int pending_texture_mailbox_callbacks_; |
| 105 bool impl_side_painting_; | 109 bool impl_side_painting_; |
| 106 }; | 110 }; |
| 107 | 111 |
| 108 } // namespace cc | 112 } // namespace cc |
| 109 | 113 |
| 110 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_ | 114 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_ |
| OLD | NEW |