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

Side by Side Diff: cc/quads/render_pass.h

Issue 14060015: cc: Async readback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_QUADS_RENDER_PASS_H_ 5 #ifndef CC_QUADS_RENDER_PASS_H_
6 #define CC_QUADS_RENDER_PASS_H_ 6 #define CC_QUADS_RENDER_PASS_H_
7 7
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/callback.h"
12 #include "cc/base/cc_export.h" 13 #include "cc/base/cc_export.h"
13 #include "cc/base/hash_pair.h" 14 #include "cc/base/hash_pair.h"
14 #include "cc/base/scoped_ptr_hash_map.h" 15 #include "cc/base/scoped_ptr_hash_map.h"
15 #include "cc/base/scoped_ptr_vector.h" 16 #include "cc/base/scoped_ptr_vector.h"
16 #include "skia/ext/refptr.h" 17 #include "skia/ext/refptr.h"
17 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations .h" 18 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations .h"
18 #include "third_party/skia/include/core/SkColor.h" 19 #include "third_party/skia/include/core/SkColor.h"
19 #include "third_party/skia/include/core/SkImageFilter.h" 20 #include "third_party/skia/include/core/SkImageFilter.h"
20 #include "ui/gfx/rect.h" 21 #include "ui/gfx/rect.h"
21 #include "ui/gfx/rect_f.h" 22 #include "ui/gfx/rect_f.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // render pass' |output_rect|. 91 // render pass' |output_rect|.
91 gfx::Transform transform_to_root_target; 92 gfx::Transform transform_to_root_target;
92 93
93 // If false, the pixels in the render pass' texture are all opaque. 94 // If false, the pixels in the render pass' texture are all opaque.
94 bool has_transparent_background; 95 bool has_transparent_background;
95 96
96 // If true, then there may be pixels in the render pass' texture that are not 97 // If true, then there may be pixels in the render pass' texture that are not
97 // complete, since they are occluded. 98 // complete, since they are occluded.
98 bool has_occlusion_from_outside_target_surface; 99 bool has_occlusion_from_outside_target_surface;
99 100
101 // If non-empty, the renderer should produce a copy of the render pass'
102 // contents as a bitmap, and give a copy of the bitmap to each callback in
103 // this list. This property should not be serialized between compositors, as
104 // it only makes sense in the root compositor.
105 typedef base::Callback<void(scoped_ptr<SkBitmap>)>
106 RequestCopyAsBitmapCallback;
107 std::vector<RequestCopyAsBitmapCallback> copy_callbacks;
108
100 QuadList quad_list; 109 QuadList quad_list;
101 SharedQuadStateList shared_quad_state_list; 110 SharedQuadStateList shared_quad_state_list;
102 111
103 protected: 112 protected:
104 RenderPass(); 113 RenderPass();
105 114
106 DISALLOW_COPY_AND_ASSIGN(RenderPass); 115 DISALLOW_COPY_AND_ASSIGN(RenderPass);
107 }; 116 };
108 117
109 } // namespace cc 118 } // namespace cc
(...skipping 17 matching lines...) Expand all
127 #error define a hash function for your compiler 136 #error define a hash function for your compiler
128 #endif // COMPILER 137 #endif // COMPILER
129 } 138 }
130 139
131 namespace cc { 140 namespace cc {
132 typedef ScopedPtrVector<RenderPass> RenderPassList; 141 typedef ScopedPtrVector<RenderPass> RenderPassList;
133 typedef base::hash_map<RenderPass::Id, RenderPass*> RenderPassIdHashMap; 142 typedef base::hash_map<RenderPass::Id, RenderPass*> RenderPassIdHashMap;
134 } // namespace cc 143 } // namespace cc
135 144
136 #endif // CC_QUADS_RENDER_PASS_H_ 145 #endif // CC_QUADS_RENDER_PASS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698