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

Side by Side Diff: content/common/gpu/media/gles2_texture_to_egl_image_translator.h

Issue 21584002: Delete dead code: OmxVideoDecodeAccelerator is unused. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-removing both OWNERS & README Created 7 years, 4 months 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 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 CONTENT_COMMON_GPU_MEDIA_GLES2_TEXTURE_TO_EGL_IMAGE_TRANSLATOR_H_
6 #define CONTENT_COMMON_GPU_MEDIA_GLES2_TEXTURE_TO_EGL_IMAGE_TRANSLATOR_H_
7
8 #include <map>
9
10 #include "base/basictypes.h"
11 #include "media/video/picture.h"
12 #include "ui/gl/gl_bindings.h"
13
14 namespace content {
15
16 // Class to wrap egl-opengles related operations.
17 // PPAPI will give the textures to OmxVideoDecodeAccelerator.
18 // OmxVideoDecodeAccelerator will use this class to convert
19 // these texture into EGLImage and back.
20 class Gles2TextureToEglImageTranslator {
21 public:
22 Gles2TextureToEglImageTranslator(bool use_backing_pixmaps);
23 ~Gles2TextureToEglImageTranslator();
24
25 // Translates texture into EGLImage and back.
26 EGLImageKHR TranslateToEglImage(EGLDisplay egl_display,
27 EGLContext egl_context,
28 uint32 texture,
29 const gfx::Size& dimensions);
30 uint32 TranslateToTexture(EGLImageKHR egl_image);
31 void DestroyEglImage(EGLDisplay egl_display, EGLImageKHR egl_image);
32
33 private:
34 bool use_backing_pixmaps_;
35 typedef std::map<EGLImageKHR, Pixmap> ImagePixmap;
36 ImagePixmap eglimage_pixmap_;
37 DISALLOW_COPY_AND_ASSIGN(Gles2TextureToEglImageTranslator);
38 };
39
40 } // namespace content
41
42 #endif // CONTENT_COMMON_GPU_MEDIA_GLES2_TEXTURE_TO_EGL_IMAGE_TRANSLATOR_H_
OLDNEW
« no previous file with comments | « content/common/gpu/DEPS ('k') | content/common/gpu/media/gles2_texture_to_egl_image_translator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698