Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Side by Side Diff: cc/test/layer_tree_pixel_test.h

Issue 1427543002: Modified old wait sync point functions to also accept new sync tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mock gpu video accelerator factory Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 const TextureMailbox& texture_mailbox); 82 const TextureMailbox& texture_mailbox);
83 83
84 void CopyBitmapToTextureMailboxAsTexture( 84 void CopyBitmapToTextureMailboxAsTexture(
85 const SkBitmap& bitmap, 85 const SkBitmap& bitmap,
86 TextureMailbox* texture_mailbox, 86 TextureMailbox* texture_mailbox,
87 scoped_ptr<SingleReleaseCallback>* release_callback); 87 scoped_ptr<SingleReleaseCallback>* release_callback);
88 88
89 void ReleaseTextureMailbox(scoped_ptr<gpu::GLInProcessContext> context, 89 void ReleaseTextureMailbox(scoped_ptr<gpu::GLInProcessContext> context,
90 uint32 texture, 90 uint32 texture,
91 uint32 sync_point, 91 uint32 sync_point,
92 const gpu::SyncToken& sync_token,
92 bool lost_resource); 93 bool lost_resource);
93 94
94 void Finish(); 95 void Finish();
95 96
96 void set_enlarge_texture_amount(const gfx::Vector2d& enlarge_texture_amount) { 97 void set_enlarge_texture_amount(const gfx::Vector2d& enlarge_texture_amount) {
97 enlarge_texture_amount_ = enlarge_texture_amount; 98 enlarge_texture_amount_ = enlarge_texture_amount;
98 } 99 }
99 100
100 // Common CSS colors defined for tests to use. 101 // Common CSS colors defined for tests to use.
101 static const SkColor kCSSOrange = 0xffffa500; 102 static const SkColor kCSSOrange = 0xffffa500;
102 static const SkColor kCSSBrown = 0xffa52a2a; 103 static const SkColor kCSSBrown = 0xffa52a2a;
103 static const SkColor kCSSGreen = 0xff008000; 104 static const SkColor kCSSGreen = 0xff008000;
104 105
105 gfx::DisableNullDrawGLBindings enable_pixel_output_; 106 gfx::DisableNullDrawGLBindings enable_pixel_output_;
106 scoped_ptr<PixelComparator> pixel_comparator_; 107 scoped_ptr<PixelComparator> pixel_comparator_;
107 PixelTestType test_type_; 108 PixelTestType test_type_;
108 scoped_refptr<Layer> content_root_; 109 scoped_refptr<Layer> content_root_;
109 Layer* readback_target_; 110 Layer* readback_target_;
110 base::FilePath ref_file_; 111 base::FilePath ref_file_;
111 scoped_ptr<SkBitmap> result_bitmap_; 112 scoped_ptr<SkBitmap> result_bitmap_;
112 std::vector<scoped_refptr<TextureLayer>> texture_layers_; 113 std::vector<scoped_refptr<TextureLayer>> texture_layers_;
113 int pending_texture_mailbox_callbacks_; 114 int pending_texture_mailbox_callbacks_;
114 gfx::Vector2d enlarge_texture_amount_; 115 gfx::Vector2d enlarge_texture_amount_;
115 }; 116 };
116 117
117 } // namespace cc 118 } // namespace cc
118 119
119 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_ 120 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698