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

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

Issue 1007953003: Revert of Increase YUV video clamping (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « cc/quads/draw_quad_unittest.cc ('k') | cc/quads/yuv_video_draw_quad.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 13 matching lines...) Expand all
24 24
25 ~YUVVideoDrawQuad() override; 25 ~YUVVideoDrawQuad() override;
26 26
27 YUVVideoDrawQuad(); 27 YUVVideoDrawQuad();
28 28
29 void SetNew(const SharedQuadState* shared_quad_state, 29 void SetNew(const SharedQuadState* shared_quad_state,
30 const gfx::Rect& rect, 30 const gfx::Rect& rect,
31 const gfx::Rect& opaque_rect, 31 const gfx::Rect& opaque_rect,
32 const gfx::Rect& visible_rect, 32 const gfx::Rect& visible_rect,
33 const gfx::RectF& tex_coord_rect, 33 const gfx::RectF& tex_coord_rect,
34 const gfx::Size& min_tex_size, 34 const gfx::Size& tex_size,
35 unsigned y_plane_resource_id, 35 unsigned y_plane_resource_id,
36 unsigned u_plane_resource_id, 36 unsigned u_plane_resource_id,
37 unsigned v_plane_resource_id, 37 unsigned v_plane_resource_id,
38 unsigned a_plane_resource_id, 38 unsigned a_plane_resource_id,
39 ColorSpace color_space); 39 ColorSpace color_space);
40 40
41 void SetAll(const SharedQuadState* shared_quad_state, 41 void SetAll(const SharedQuadState* shared_quad_state,
42 const gfx::Rect& rect, 42 const gfx::Rect& rect,
43 const gfx::Rect& opaque_rect, 43 const gfx::Rect& opaque_rect,
44 const gfx::Rect& visible_rect, 44 const gfx::Rect& visible_rect,
45 bool needs_blending, 45 bool needs_blending,
46 const gfx::RectF& tex_coord_rect, 46 const gfx::RectF& tex_coord_rect,
47 const gfx::Size& min_tex_size, 47 const gfx::Size& tex_size,
48 unsigned y_plane_resource_id, 48 unsigned y_plane_resource_id,
49 unsigned u_plane_resource_id, 49 unsigned u_plane_resource_id,
50 unsigned v_plane_resource_id, 50 unsigned v_plane_resource_id,
51 unsigned a_plane_resource_id, 51 unsigned a_plane_resource_id,
52 ColorSpace color_space); 52 ColorSpace color_space);
53 53
54 gfx::RectF tex_coord_rect; 54 gfx::RectF tex_coord_rect;
55 // Empty texture size implies no clamping of texture coordinates. 55 // Empty texture size implies no clamping of texture coordinates.
56 gfx::Size min_tex_size; 56 gfx::Size tex_size;
57 unsigned y_plane_resource_id; 57 unsigned y_plane_resource_id;
58 unsigned u_plane_resource_id; 58 unsigned u_plane_resource_id;
59 unsigned v_plane_resource_id; 59 unsigned v_plane_resource_id;
60 unsigned a_plane_resource_id; 60 unsigned a_plane_resource_id;
61 ColorSpace color_space; 61 ColorSpace color_space;
62 62
63 void IterateResources(const ResourceIteratorCallback& callback) override; 63 void IterateResources(const ResourceIteratorCallback& callback) override;
64 64
65 static const YUVVideoDrawQuad* MaterialCast(const DrawQuad*); 65 static const YUVVideoDrawQuad* MaterialCast(const DrawQuad*);
66 66
67 private: 67 private:
68 void ExtendValue(base::trace_event::TracedValue* value) const override; 68 void ExtendValue(base::trace_event::TracedValue* value) const override;
69 }; 69 };
70 70
71 } // namespace cc 71 } // namespace cc
72 72
73 #endif // CC_QUADS_YUV_VIDEO_DRAW_QUAD_H_ 73 #endif // CC_QUADS_YUV_VIDEO_DRAW_QUAD_H_
OLDNEW
« no previous file with comments | « cc/quads/draw_quad_unittest.cc ('k') | cc/quads/yuv_video_draw_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698