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

Unified Diff: cc/quads/yuv_video_draw_quad.h

Issue 2072273002: Implement YUVVideoDrawQuad StructTraits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added unit test Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« cc/ipc/quads_struct_traits.cc ('K') | « cc/ipc/struct_traits_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/yuv_video_draw_quad.h
diff --git a/cc/quads/yuv_video_draw_quad.h b/cc/quads/yuv_video_draw_quad.h
index 1f53e8df877e3945baa228e9d49446accbcd82c3..d0581e824032144ffb1075e31e3e44ce2a99a698 100644
--- a/cc/quads/yuv_video_draw_quad.h
+++ b/cc/quads/yuv_video_draw_quad.h
@@ -18,6 +18,11 @@ namespace cc {
class CC_EXPORT YUVVideoDrawQuad : public DrawQuad {
public:
+ static const size_t kYPlaneResourceIdIndex = 0;
+ static const size_t kUPlaneResourceIdIndex = 1;
+ static const size_t kVPlaneResourceIdIndex = 2;
+ static const size_t kAPlaneResourceIdIndex = 3;
+
enum ColorSpace {
REC_601, // SDTV standard with restricted "studio swing" color range.
REC_709, // HDTV standard with restricted "studio swing" color range.
@@ -93,11 +98,6 @@ class CC_EXPORT YUVVideoDrawQuad : public DrawQuad {
}
private:
- static const size_t kYPlaneResourceIdIndex = 0;
- static const size_t kUPlaneResourceIdIndex = 1;
- static const size_t kVPlaneResourceIdIndex = 2;
- static const size_t kAPlaneResourceIdIndex = 3;
-
void ExtendValue(base::trace_event::TracedValue* value) const override;
};
« cc/ipc/quads_struct_traits.cc ('K') | « cc/ipc/struct_traits_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698