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

Unified Diff: ui/gl/gl_image_android.cc

Issue 22824009: Remove StreamTextureManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: ui/gl/gl_image_android.cc
diff --git a/ui/gl/gl_image_android.cc b/ui/gl/gl_image_android.cc
index fe871e7b5e3b9235503f71b4ed2034ad344472db..7eb555dfd20e7ee60cbb25ff2a1cc561d3cc5b80 100644
--- a/ui/gl/gl_image_android.cc
+++ b/ui/gl/gl_image_android.cc
@@ -5,6 +5,7 @@
#include "ui/gl/gl_image.h"
#include "base/debug/trace_event.h"
+#include "ui/gl/android/gl_image_stream.h"
#include "ui/gl/gl_image_egl.h"
#include "ui/gl/gl_image_shm.h"
#include "ui/gl/gl_image_stub.h"
@@ -57,4 +58,18 @@ scoped_refptr<GLImage> GLImage::CreateGLImageForGpuMemoryBuffer(
}
}
+scoped_refptr<GLImage> GLImage::CreateGLImageForStreamTexture(
+ unsigned int texture_id) {
+ TRACE_EVENT0("gpu", "GLImage::CreateGLImageForStreamTexture");
+ switch (GetGLImplementation()) {
+ case kGLImplementationEGLGLES2:
+ return new GLImageStream(texture_id);
+ case kGLImplementationMockGL:
+ return new GLImageStub;
+ default:
+ NOTREACHED();
+ return NULL;
+ }
+}
+
} // namespace gfx

Powered by Google App Engine
This is Rietveld 408576698