Index: media/filters/context_3d_provider.h |
diff --git a/media/filters/context_3d_provider.h b/media/filters/context_3d_provider.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4f5dd82bed239b13a8f4a0b403e8f4399e317ce3 |
--- /dev/null |
+++ b/media/filters/context_3d_provider.h |
@@ -0,0 +1,32 @@ |
+// Copyright (c) 2014 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 MEDIA_FILTERS_CONTEXT_3D_PROVIDER_H_ |
+#define MEDIA_FILTERS_CONTEXT_3D_PROVIDER_H_ |
+ |
+class GrContext; |
+ |
+namespace gpu { |
+namespace gles2 { |
+class GLES2Interface; |
+} |
+} |
+ |
+namespace media { |
+ |
+// This struct can be used to make media use gpu::gles2::GLES2Interface and |
+// GrContext. |
+// Usage: |
+// gpu::gles2::GLES2Interface* gl = ...; |
+// GrContext* gr_context = ...; |
+// Context3DProvider provider{gl, gr_context}; |
+ |
+struct Context3DProvider { |
+ gpu::gles2::GLES2Interface* gl; |
+ class GrContext* gr_context; |
+}; |
+ |
+} // namespace media |
+ |
+#endif // MEDIA_FILTERS_CONTEXT_3D_PROVIDER_H_ |