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

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

Issue 7088021: OmxVideoDecodeAcceleratorTest is born! (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 | « no previous file | 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
diff --git a/content/common/gpu/gles2_texture_to_egl_image_translator.h b/content/common/gpu/gles2_texture_to_egl_image_translator.h
index 57938bc0ba43a916b522eae3be9d98c7b7a8d1ee..728bbd80fb96a55ffc43b8b73820cda4377f9880 100644
--- a/content/common/gpu/gles2_texture_to_egl_image_translator.h
+++ b/content/common/gpu/gles2_texture_to_egl_image_translator.h
@@ -16,23 +16,24 @@
// PPAPI will give the textures to OmxVideoDecodeAccelerator.
// OmxVideoDecodeAccelerator will use this class to convert
// these texture into EGLImage and back.
+//
+// TODO(fischman): this class is now stateless (it wasn't always). If it seems
+// like it'll stay stateless, replace with a namespace and free functions, or
+// just in-line them into the only caller, OmxVideoDecodeAccelerator.
class Gles2TextureToEglImageTranslator {
public:
- Gles2TextureToEglImageTranslator(Display* display, int32 gles2_context_id);
+ Gles2TextureToEglImageTranslator();
~Gles2TextureToEglImageTranslator();
// Translates texture into EGLImage and back.
- EGLImageKHR TranslateToEglImage(uint32 texture);
+ EGLImageKHR TranslateToEglImage(EGLDisplay egl_display,
+ EGLContext egl_context,
+ uint32 texture);
uint32 TranslateToTexture(EGLImageKHR egl_image);
- void DestroyEglImage(EGLImageKHR egl_image);
+ void DestroyEglImage(EGLDisplay egl_display, EGLImageKHR egl_image);
private:
- int32 gles2_context_id_;
- gfx::Size size_;
- EGLDisplay egl_display_;
- EGLContext egl_context_;
- EGLSurface egl_surface_;
- DISALLOW_IMPLICIT_CONSTRUCTORS(Gles2TextureToEglImageTranslator);
+ DISALLOW_COPY_AND_ASSIGN(Gles2TextureToEglImageTranslator);
};
#endif // CONTENT_COMMON_GPU_GLES2_TEXTURE_TO_EGL_IMAGE_TRANSLATOR_H_
« no previous file with comments | « no previous file | 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