| 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 <stddef.h> | 8 #include <stddef.h> | 
| 9 | 9 | 
| 10 #include <memory> | 10 #include <memory> | 
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 72               const gfx::Size& ya_tex_size, | 72               const gfx::Size& ya_tex_size, | 
| 73               const gfx::Size& uv_tex_size, | 73               const gfx::Size& uv_tex_size, | 
| 74               unsigned y_plane_resource_id, | 74               unsigned y_plane_resource_id, | 
| 75               unsigned u_plane_resource_id, | 75               unsigned u_plane_resource_id, | 
| 76               unsigned v_plane_resource_id, | 76               unsigned v_plane_resource_id, | 
| 77               unsigned a_plane_resource_id, | 77               unsigned a_plane_resource_id, | 
| 78               ColorSpace color_space, | 78               ColorSpace color_space, | 
| 79               const gfx::ColorSpace& video_color_space, | 79               const gfx::ColorSpace& video_color_space, | 
| 80               float offset, | 80               float offset, | 
| 81               float multiplier, | 81               float multiplier, | 
| 82               uint32_t bits_per_channel); | 82               uint32_t bits_per_channel, | 
|  | 83               bool require_overlay); | 
| 83 | 84 | 
| 84   gfx::RectF ya_tex_coord_rect; | 85   gfx::RectF ya_tex_coord_rect; | 
| 85   gfx::RectF uv_tex_coord_rect; | 86   gfx::RectF uv_tex_coord_rect; | 
| 86   gfx::Size ya_tex_size; | 87   gfx::Size ya_tex_size; | 
| 87   gfx::Size uv_tex_size; | 88   gfx::Size uv_tex_size; | 
| 88   ColorSpace color_space; | 89   ColorSpace color_space; | 
| 89   float resource_offset = 0.0f; | 90   float resource_offset = 0.0f; | 
| 90   float resource_multiplier = 1.0f; | 91   float resource_multiplier = 1.0f; | 
| 91   uint32_t bits_per_channel = 8; | 92   uint32_t bits_per_channel = 8; | 
| 92   // TODO(hubbe): Move to ResourceProvider::ScopedSamplerGL. | 93   // TODO(hubbe): Move to ResourceProvider::ScopedSamplerGL. | 
| 93   gfx::ColorSpace video_color_space; | 94   gfx::ColorSpace video_color_space; | 
|  | 95   bool require_overlay = false; | 
| 94 | 96 | 
| 95   static const YUVVideoDrawQuad* MaterialCast(const DrawQuad*); | 97   static const YUVVideoDrawQuad* MaterialCast(const DrawQuad*); | 
| 96 | 98 | 
| 97   ResourceId y_plane_resource_id() const { | 99   ResourceId y_plane_resource_id() const { | 
| 98     return resources.ids[kYPlaneResourceIdIndex]; | 100     return resources.ids[kYPlaneResourceIdIndex]; | 
| 99   } | 101   } | 
| 100   ResourceId u_plane_resource_id() const { | 102   ResourceId u_plane_resource_id() const { | 
| 101     return resources.ids[kUPlaneResourceIdIndex]; | 103     return resources.ids[kUPlaneResourceIdIndex]; | 
| 102   } | 104   } | 
| 103   ResourceId v_plane_resource_id() const { | 105   ResourceId v_plane_resource_id() const { | 
| 104     return resources.ids[kVPlaneResourceIdIndex]; | 106     return resources.ids[kVPlaneResourceIdIndex]; | 
| 105   } | 107   } | 
| 106   ResourceId a_plane_resource_id() const { | 108   ResourceId a_plane_resource_id() const { | 
| 107     return resources.ids[kAPlaneResourceIdIndex]; | 109     return resources.ids[kAPlaneResourceIdIndex]; | 
| 108   } | 110   } | 
| 109 | 111 | 
| 110  private: | 112  private: | 
| 111   void ExtendValue(base::trace_event::TracedValue* value) const override; | 113   void ExtendValue(base::trace_event::TracedValue* value) const override; | 
| 112 }; | 114 }; | 
| 113 | 115 | 
| 114 }  // namespace cc | 116 }  // namespace cc | 
| 115 | 117 | 
| 116 #endif  // CC_QUADS_YUV_VIDEO_DRAW_QUAD_H_ | 118 #endif  // CC_QUADS_YUV_VIDEO_DRAW_QUAD_H_ | 
| OLD | NEW | 
|---|