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

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

Issue 667793004: Support single-threaded impl-side painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use numeric limits for raster task limit Created 6 years, 2 months 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698