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

Unified Diff: content/common/gpu/gles2_texture_to_egl_image_translator.h

Issue 6979017: Revert 86681 - Updated OMX decoder for recent PPAPI changes, and added to the build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/gpu/DEPS ('k') | content/common/gpu/gles2_texture_to_egl_image_translator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gles2_texture_to_egl_image_translator.h
===================================================================
--- content/common/gpu/gles2_texture_to_egl_image_translator.h (revision 86686)
+++ content/common/gpu/gles2_texture_to_egl_image_translator.h (working copy)
@@ -1,39 +0,0 @@
-// Copyright (c) 2011 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 CONTENT_COMMON_GPU_GLES2_TEXTURE_TO_EGL_IMAGE_TRANSLATOR_H_
-#define CONTENT_COMMON_GPU_GLES2_TEXTURE_TO_EGL_IMAGE_TRANSLATOR_H_
-
-#include <EGL/egl.h>
-#include <EGL/eglext.h>
-#include <GLES2/gl2.h>
-#include <GLES2/gl2ext.h>
-
-#include "base/basictypes.h"
-#include "media/video/picture.h"
-
-// Class to wrap egl-opengles related operations.
-// PPAPI will give the textures to OmxVideoDecodeAccelerator.
-// OmxVideoDecodeAccelerator will use this class to convert
-// these texture into EGLImage and back.
-class Gles2TextureToEglImageTranslator {
- public:
- Gles2TextureToEglImageTranslator(Display* display, int32 gles2_context_id);
- ~Gles2TextureToEglImageTranslator();
-
- // Translates texture into EGLImage and back.
- EGLImageKHR TranslateToEglImage(uint32 texture);
- uint32 TranslateToTexture(EGLImageKHR egl_image);
- void DestroyEglImage(EGLImageKHR egl_image);
-
- private:
- int32 gles2_context_id_;
- gfx::Size size_;
- EGLDisplay egl_display_;
- EGLContext egl_context_;
- EGLSurface egl_surface_;
- DISALLOW_IMPLICIT_CONSTRUCTORS(Gles2TextureToEglImageTranslator);
-};
-
-#endif // CONTENT_COMMON_GPU_GLES2_TEXTURE_TO_EGL_IMAGE_TRANSLATOR_H_
« no previous file with comments | « content/common/gpu/DEPS ('k') | content/common/gpu/gles2_texture_to_egl_image_translator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698