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

Side by Side Diff: media/filters/context_3d_provider.h

Issue 445013002: media: Optimize HW Video to 2D Canvas copy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix window component build Created 6 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 unified diff | Download patch
« no previous file with comments | « media/blink/webmediaplayer_params.cc ('k') | media/filters/skcanvas_video_renderer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 {
jamesr 2014/11/24 22:19:50 cc::ContextProvider exists to provide a shared own
26 Context3DProvider() : gl(nullptr), gr_context(nullptr) {}
27 Context3DProvider(gpu::gles2::GLES2Interface* gl_,
28 class GrContext* gr_context_)
29 : gl(gl_), gr_context(gr_context_) {}
30
31 gpu::gles2::GLES2Interface* gl;
32 class GrContext* gr_context;
33 };
34
35 } // namespace media
36
37 #endif // MEDIA_FILTERS_CONTEXT_3D_PROVIDER_H_
OLDNEW
« no previous file with comments | « media/blink/webmediaplayer_params.cc ('k') | media/filters/skcanvas_video_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698