| 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/resources/single_release_callback.h" | 10 #include "cc/resources/single_release_callback.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 RunPixelTestWithReadbackTarget(PixelTestType type, | 72 void RunPixelTestWithReadbackTarget(PixelTestType type, |
| 73 scoped_refptr<Layer> content_root, | 73 scoped_refptr<Layer> content_root, |
| 74 Layer* target, | 74 Layer* target, |
| 75 base::FilePath file_name); | 75 base::FilePath file_name); |
| 76 | 76 |
| 77 scoped_ptr<SkBitmap> CopyTextureMailboxToBitmap( | 77 scoped_ptr<SkBitmap> CopyTextureMailboxToBitmap( |
| 78 const gfx::Size& size, | 78 gfx::Size size, |
| 79 const TextureMailbox& texture_mailbox); | 79 const TextureMailbox& texture_mailbox); |
| 80 | 80 |
| 81 void CopyBitmapToTextureMailboxAsTexture( | 81 void CopyBitmapToTextureMailboxAsTexture( |
| 82 const SkBitmap& bitmap, | 82 const SkBitmap& bitmap, |
| 83 TextureMailbox* texture_mailbox, | 83 TextureMailbox* texture_mailbox, |
| 84 scoped_ptr<SingleReleaseCallback>* release_callback); | 84 scoped_ptr<SingleReleaseCallback>* release_callback); |
| 85 | 85 |
| 86 void ReleaseTextureMailbox(scoped_ptr<gpu::GLInProcessContext> context, | 86 void ReleaseTextureMailbox(scoped_ptr<gpu::GLInProcessContext> context, |
| 87 uint32 texture, | 87 uint32 texture, |
| 88 uint32 sync_point, | 88 uint32 sync_point, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 102 base::FilePath ref_file_; | 102 base::FilePath ref_file_; |
| 103 scoped_ptr<SkBitmap> result_bitmap_; | 103 scoped_ptr<SkBitmap> result_bitmap_; |
| 104 std::vector<scoped_refptr<TextureLayer> > texture_layers_; | 104 std::vector<scoped_refptr<TextureLayer> > texture_layers_; |
| 105 int pending_texture_mailbox_callbacks_; | 105 int pending_texture_mailbox_callbacks_; |
| 106 bool impl_side_painting_; | 106 bool impl_side_painting_; |
| 107 }; | 107 }; |
| 108 | 108 |
| 109 } // namespace cc | 109 } // namespace cc |
| 110 | 110 |
| 111 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_ | 111 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_ |
| OLD | NEW |