| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_YUV_VIDEO_DRAW_QUAD_H_ | 5 #ifndef CC_QUADS_YUV_VIDEO_DRAW_QUAD_H_ |
| 6 #define CC_QUADS_YUV_VIDEO_DRAW_QUAD_H_ | 6 #define CC_QUADS_YUV_VIDEO_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 ~YUVVideoDrawQuad() override; | 23 ~YUVVideoDrawQuad() override; |
| 24 | 24 |
| 25 YUVVideoDrawQuad(); | 25 YUVVideoDrawQuad(); |
| 26 | 26 |
| 27 void SetNew(const SharedQuadState* shared_quad_state, | 27 void SetNew(const SharedQuadState* shared_quad_state, |
| 28 const gfx::Rect& rect, | 28 const gfx::Rect& rect, |
| 29 const gfx::Rect& opaque_rect, | 29 const gfx::Rect& opaque_rect, |
| 30 const gfx::Rect& visible_rect, | 30 const gfx::Rect& visible_rect, |
| 31 const gfx::RectF& tex_coord_rect, | 31 const gfx::RectF& tex_coord_rect, |
| 32 const gfx::Size& tex_size, |
| 32 unsigned y_plane_resource_id, | 33 unsigned y_plane_resource_id, |
| 33 unsigned u_plane_resource_id, | 34 unsigned u_plane_resource_id, |
| 34 unsigned v_plane_resource_id, | 35 unsigned v_plane_resource_id, |
| 35 unsigned a_plane_resource_id, | 36 unsigned a_plane_resource_id, |
| 36 ColorSpace color_space); | 37 ColorSpace color_space); |
| 37 | 38 |
| 38 void SetAll(const SharedQuadState* shared_quad_state, | 39 void SetAll(const SharedQuadState* shared_quad_state, |
| 39 const gfx::Rect& rect, | 40 const gfx::Rect& rect, |
| 40 const gfx::Rect& opaque_rect, | 41 const gfx::Rect& opaque_rect, |
| 41 const gfx::Rect& visible_rect, | 42 const gfx::Rect& visible_rect, |
| 42 bool needs_blending, | 43 bool needs_blending, |
| 43 const gfx::RectF& tex_coord_rect, | 44 const gfx::RectF& tex_coord_rect, |
| 45 const gfx::Size& tex_size, |
| 44 unsigned y_plane_resource_id, | 46 unsigned y_plane_resource_id, |
| 45 unsigned u_plane_resource_id, | 47 unsigned u_plane_resource_id, |
| 46 unsigned v_plane_resource_id, | 48 unsigned v_plane_resource_id, |
| 47 unsigned a_plane_resource_id, | 49 unsigned a_plane_resource_id, |
| 48 ColorSpace color_space); | 50 ColorSpace color_space); |
| 49 | 51 |
| 50 gfx::RectF tex_coord_rect; | 52 gfx::RectF tex_coord_rect; |
| 53 // Empty texture size implies no clamping of texture coordinates. |
| 54 gfx::Size tex_size; |
| 51 unsigned y_plane_resource_id; | 55 unsigned y_plane_resource_id; |
| 52 unsigned u_plane_resource_id; | 56 unsigned u_plane_resource_id; |
| 53 unsigned v_plane_resource_id; | 57 unsigned v_plane_resource_id; |
| 54 unsigned a_plane_resource_id; | 58 unsigned a_plane_resource_id; |
| 55 ColorSpace color_space; | 59 ColorSpace color_space; |
| 56 | 60 |
| 57 void IterateResources(const ResourceIteratorCallback& callback) override; | 61 void IterateResources(const ResourceIteratorCallback& callback) override; |
| 58 | 62 |
| 59 static const YUVVideoDrawQuad* MaterialCast(const DrawQuad*); | 63 static const YUVVideoDrawQuad* MaterialCast(const DrawQuad*); |
| 60 | 64 |
| 61 private: | 65 private: |
| 62 void ExtendValue(base::debug::TracedValue* value) const override; | 66 void ExtendValue(base::debug::TracedValue* value) const override; |
| 63 }; | 67 }; |
| 64 | 68 |
| 65 } // namespace cc | 69 } // namespace cc |
| 66 | 70 |
| 67 #endif // CC_QUADS_YUV_VIDEO_DRAW_QUAD_H_ | 71 #endif // CC_QUADS_YUV_VIDEO_DRAW_QUAD_H_ |
| OLD | NEW |