| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 scoped_ptr<SkBitmap> CopyTextureMailboxToBitmap( | 72 scoped_ptr<SkBitmap> CopyTextureMailboxToBitmap( |
| 73 gfx::Size size, | 73 gfx::Size size, |
| 74 const TextureMailbox& texture_mailbox); | 74 const TextureMailbox& texture_mailbox); |
| 75 | 75 |
| 76 void CopyBitmapToTextureMailboxAsTexture( | 76 void CopyBitmapToTextureMailboxAsTexture( |
| 77 const SkBitmap& bitmap, | 77 const SkBitmap& bitmap, |
| 78 TextureMailbox* texture_mailbox, | 78 TextureMailbox* texture_mailbox, |
| 79 scoped_ptr<SingleReleaseCallback>* release_callback); | 79 scoped_ptr<SingleReleaseCallback>* release_callback); |
| 80 | 80 |
| 81 void ReleaseTextureMailbox( | 81 void ReleaseTextureMailbox( |
| 82 scoped_ptr<WebKit::WebGraphicsContext3D> context3d, | 82 scoped_ptr<blink::WebGraphicsContext3D> context3d, |
| 83 uint32 texture, | 83 uint32 texture, |
| 84 uint32 sync_point, | 84 uint32 sync_point, |
| 85 bool lost_resource); | 85 bool lost_resource); |
| 86 | 86 |
| 87 // Common CSS colors defined for tests to use. | 87 // Common CSS colors defined for tests to use. |
| 88 enum Colors { | 88 enum Colors { |
| 89 kCSSOrange = 0xffffa500, | 89 kCSSOrange = 0xffffa500, |
| 90 kCSSBrown = 0xffa52a2a, | 90 kCSSBrown = 0xffa52a2a, |
| 91 kCSSGreen = 0xff008000, | 91 kCSSGreen = 0xff008000, |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 scoped_ptr<PixelComparator> pixel_comparator_; | 94 scoped_ptr<PixelComparator> pixel_comparator_; |
| 95 PixelTestType test_type_; | 95 PixelTestType test_type_; |
| 96 scoped_refptr<Layer> content_root_; | 96 scoped_refptr<Layer> content_root_; |
| 97 Layer* readback_target_; | 97 Layer* readback_target_; |
| 98 base::FilePath ref_file_; | 98 base::FilePath ref_file_; |
| 99 scoped_ptr<SkBitmap> result_bitmap_; | 99 scoped_ptr<SkBitmap> result_bitmap_; |
| 100 std::vector<scoped_refptr<TextureLayer> > texture_layers_; | 100 std::vector<scoped_refptr<TextureLayer> > texture_layers_; |
| 101 int pending_texture_mailbox_callbacks_; | 101 int pending_texture_mailbox_callbacks_; |
| 102 bool impl_side_painting_; | 102 bool impl_side_painting_; |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 } // namespace cc | 105 } // namespace cc |
| 106 | 106 |
| 107 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_ | 107 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_ |
| OLD | NEW |