| OLD | NEW |
| 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 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 104 |
| 105 // If non-empty, the renderer should produce a copy of the render pass' | 105 // If non-empty, the renderer should produce a copy of the render pass' |
| 106 // contents as a bitmap, and give a copy of the bitmap to each callback in | 106 // contents as a bitmap, and give a copy of the bitmap to each callback in |
| 107 // this list. This property should not be serialized between compositors, as | 107 // this list. This property should not be serialized between compositors, as |
| 108 // it only makes sense in the root compositor. | 108 // it only makes sense in the root compositor. |
| 109 ScopedPtrVector<CopyOutputRequest> copy_requests; | 109 ScopedPtrVector<CopyOutputRequest> copy_requests; |
| 110 | 110 |
| 111 QuadList quad_list; | 111 QuadList quad_list; |
| 112 SharedQuadStateList shared_quad_state_list; | 112 SharedQuadStateList shared_quad_state_list; |
| 113 | 113 |
| 114 // Specific to overlay hardware handling. |
| 115 bool handled_by_overlay_hardware; |
| 116 gfx::Rect overlay_hardware_rect; |
| 117 bool should_render; |
| 118 |
| 114 protected: | 119 protected: |
| 115 explicit RenderPass(size_t num_layers); | 120 explicit RenderPass(size_t num_layers); |
| 116 RenderPass(); | 121 RenderPass(); |
| 117 | 122 |
| 118 private: | 123 private: |
| 119 DISALLOW_COPY_AND_ASSIGN(RenderPass); | 124 DISALLOW_COPY_AND_ASSIGN(RenderPass); |
| 120 }; | 125 }; |
| 121 | 126 |
| 122 } // namespace cc | 127 } // namespace cc |
| 123 | 128 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 137 #error define a hash function for your compiler | 142 #error define a hash function for your compiler |
| 138 #endif // COMPILER | 143 #endif // COMPILER |
| 139 } // namespace BASE_HASH_NAMESPACE | 144 } // namespace BASE_HASH_NAMESPACE |
| 140 | 145 |
| 141 namespace cc { | 146 namespace cc { |
| 142 typedef ScopedPtrVector<RenderPass> RenderPassList; | 147 typedef ScopedPtrVector<RenderPass> RenderPassList; |
| 143 typedef base::hash_map<RenderPass::Id, RenderPass*> RenderPassIdHashMap; | 148 typedef base::hash_map<RenderPass::Id, RenderPass*> RenderPassIdHashMap; |
| 144 } // namespace cc | 149 } // namespace cc |
| 145 | 150 |
| 146 #endif // CC_QUADS_RENDER_PASS_H_ | 151 #endif // CC_QUADS_RENDER_PASS_H_ |
| OLD | NEW |