Update V8 to version 4.7.42.
[chromium-blink-merge.git] / media / filters / context_3d.h
blobccb0c7c962a75cbd51c585b57a3f0242a0b37514
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.
5 #ifndef MEDIA_FILTERS_CONTEXT_3D_H_
6 #define MEDIA_FILTERS_CONTEXT_3D_H_
8 class GrContext;
10 namespace gpu {
11 namespace gles2 {
12 class GLES2Interface;
16 namespace media {
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 // Context3D context_3d(gl, gr_context);
25 struct Context3D {
26 Context3D() : gl(nullptr), gr_context(nullptr) {}
27 Context3D(gpu::gles2::GLES2Interface* gl_, class GrContext* gr_context_)
28 : gl(gl_), gr_context(gr_context_) {}
30 gpu::gles2::GLES2Interface* gl;
31 class GrContext* gr_context;
34 } // namespace media
36 #endif // MEDIA_FILTERS_CONTEXT_3D_H_