| 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_DRAW_QUAD_H_ | 5 #ifndef CC_QUADS_RENDER_PASS_DRAW_QUAD_H_ |
| 6 #define CC_QUADS_RENDER_PASS_DRAW_QUAD_H_ | 6 #define CC_QUADS_RENDER_PASS_DRAW_QUAD_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 void SetNew(const SharedQuadState* shared_quad_state, | 23 void SetNew(const SharedQuadState* shared_quad_state, |
| 24 const gfx::Rect& rect, | 24 const gfx::Rect& rect, |
| 25 const gfx::Rect& visible_rect, | 25 const gfx::Rect& visible_rect, |
| 26 RenderPass::Id render_pass_id, | 26 RenderPass::Id render_pass_id, |
| 27 bool is_replica, | 27 bool is_replica, |
| 28 ResourceProvider::ResourceId mask_resource_id, | 28 ResourceProvider::ResourceId mask_resource_id, |
| 29 const gfx::Rect& contents_changed_since_last_frame, | 29 const gfx::Rect& contents_changed_since_last_frame, |
| 30 const gfx::RectF& mask_uv_rect, | 30 const gfx::RectF& mask_uv_rect, |
| 31 const FilterOperations& filters, | 31 const FilterOperations& filters, |
| 32 const gfx::Vector2dF& filters_scale, |
| 32 const FilterOperations& background_filters); | 33 const FilterOperations& background_filters); |
| 33 | 34 |
| 34 void SetAll(const SharedQuadState* shared_quad_state, | 35 void SetAll(const SharedQuadState* shared_quad_state, |
| 35 const gfx::Rect& rect, | 36 const gfx::Rect& rect, |
| 36 const gfx::Rect& opaque_rect, | 37 const gfx::Rect& opaque_rect, |
| 37 const gfx::Rect& visible_rect, | 38 const gfx::Rect& visible_rect, |
| 38 bool needs_blending, | 39 bool needs_blending, |
| 39 RenderPass::Id render_pass_id, | 40 RenderPass::Id render_pass_id, |
| 40 bool is_replica, | 41 bool is_replica, |
| 41 ResourceProvider::ResourceId mask_resource_id, | 42 ResourceProvider::ResourceId mask_resource_id, |
| 42 const gfx::Rect& contents_changed_since_last_frame, | 43 const gfx::Rect& contents_changed_since_last_frame, |
| 43 const gfx::RectF& mask_uv_rect, | 44 const gfx::RectF& mask_uv_rect, |
| 44 const FilterOperations& filters, | 45 const FilterOperations& filters, |
| 46 const gfx::Vector2dF& filters_scale, |
| 45 const FilterOperations& background_filters); | 47 const FilterOperations& background_filters); |
| 46 | 48 |
| 47 RenderPass::Id render_pass_id; | 49 RenderPass::Id render_pass_id; |
| 48 bool is_replica; | 50 bool is_replica; |
| 49 ResourceProvider::ResourceId mask_resource_id; | 51 ResourceProvider::ResourceId mask_resource_id; |
| 50 gfx::Rect contents_changed_since_last_frame; | 52 gfx::Rect contents_changed_since_last_frame; |
| 51 gfx::RectF mask_uv_rect; | 53 gfx::RectF mask_uv_rect; |
| 52 | 54 |
| 53 // Post-processing filters, applied to the pixels in the render pass' texture. | 55 // Post-processing filters, applied to the pixels in the render pass' texture. |
| 54 FilterOperations filters; | 56 FilterOperations filters; |
| 55 | 57 |
| 58 // The scale from layer space of the root layer of the render pass to |
| 59 // the render pass physical pixels. This scale is applied to the filter |
| 60 // parameters for pixel-moving filters. This scale should include |
| 61 // content-to-target-space scale, and device pixel ratio. |
| 62 gfx::Vector2dF filters_scale; |
| 63 |
| 56 // Post-processing filters, applied to the pixels showing through the | 64 // Post-processing filters, applied to the pixels showing through the |
| 57 // background of the render pass, from behind it. | 65 // background of the render pass, from behind it. |
| 58 FilterOperations background_filters; | 66 FilterOperations background_filters; |
| 59 | 67 |
| 60 virtual void IterateResources(const ResourceIteratorCallback& callback) | 68 virtual void IterateResources(const ResourceIteratorCallback& callback) |
| 61 OVERRIDE; | 69 OVERRIDE; |
| 62 | 70 |
| 63 static const RenderPassDrawQuad* MaterialCast(const DrawQuad*); | 71 static const RenderPassDrawQuad* MaterialCast(const DrawQuad*); |
| 64 | 72 |
| 65 private: | 73 private: |
| 66 virtual void ExtendValue(base::debug::TracedValue* value) const OVERRIDE; | 74 virtual void ExtendValue(base::debug::TracedValue* value) const OVERRIDE; |
| 67 }; | 75 }; |
| 68 | 76 |
| 69 } // namespace cc | 77 } // namespace cc |
| 70 | 78 |
| 71 #endif // CC_QUADS_RENDER_PASS_DRAW_QUAD_H_ | 79 #endif // CC_QUADS_RENDER_PASS_DRAW_QUAD_H_ |
| OLD | NEW |