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

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

Issue 145313006: [#7] Pass gfx structs by const ref (gfx::Size) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 10 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
« no previous file with comments | « cc/test/fake_picture_pile_impl.cc ('k') | cc/test/layer_tree_pixel_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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 gfx::Size size, 78 const 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
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_
OLDNEW
« no previous file with comments | « cc/test/fake_picture_pile_impl.cc ('k') | cc/test/layer_tree_pixel_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698