OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef MEDIA_FILTERS_CONTEXT_3D_PROVIDER_H_ |
| 6 #define MEDIA_FILTERS_CONTEXT_3D_PROVIDER_H_ |
| 7 |
| 8 class GrContext; |
| 9 |
| 10 namespace gpu { |
| 11 namespace gles2 { |
| 12 class GLES2Interface; |
| 13 } |
| 14 } |
| 15 |
| 16 namespace media { |
| 17 |
| 18 // This struct can be used to make media use gpu::gles2::GLES2Interface and |
| 19 // GrContext. |
| 20 // Usage: |
| 21 // gpu::gles2::GLES2Interface* gl = ...; |
| 22 // GrContext* gr_context = ...; |
| 23 // Context3DProvider provider{gl, gr_context}; |
| 24 |
| 25 struct Context3DProvider { |
| 26 gpu::gles2::GLES2Interface* gl; |
| 27 class GrContext* gr_context; |
| 28 }; |
| 29 |
| 30 } // namespace media |
| 31 |
| 32 #endif // MEDIA_FILTERS_CONTEXT_3D_PROVIDER_H_ |
OLD | NEW |