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

Unified Diff: ui/gfx/color_space_win.h

Issue 2503063002: media: Inform VideoBlit/MFTransform of video color information (Closed)
Patch Set: moved enum translation to color_space_win.cc Created 4 years, 1 month 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
Index: ui/gfx/color_space_win.h
diff --git a/ui/gfx/color_space_win.h b/ui/gfx/color_space_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..02d80ff72dc41d5ae0e9831a11084ee482356d0e
--- /dev/null
+++ b/ui/gfx/color_space_win.h
@@ -0,0 +1,27 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_GFX_COLOR_SPACE_WIN_H_
+#define UI_GFX_COLOR_SPACE_WIN_H_
+
+#include <d3d9.h>
+
+// Work around bug in this header by disabling the relevant warning for it.
+// https://connect.microsoft.com/VisualStudio/feedback/details/911260/dxva2api-h-in-win8-sdk-triggers-c4201-with-w4
+#pragma warning(push)
+#pragma warning(disable : 4201)
+#include <dxva2api.h>
+#pragma warning(pop)
+
+#include "ui/gfx/color_space.h"
+
+namespace gfx {
+
+class GFX_EXPORT ColorSpaceWin {
+ public:
+ static DXVA2_ExtendedFormat GetExtendedFormat(const ColorSpace& color_space);
+};
+
+} // namespace gfx
+#endif

Powered by Google App Engine
This is Rietveld 408576698