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

Unified Diff: ui/gl/gl_image.h

Issue 1140683002: glBindTexImage2DCHROMIUM should retain pixel format. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add GetInternalFormat override to MockGLImage. Created 5 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 | « gpu/command_buffer/service/texture_definition.cc ('k') | ui/gl/gl_image_egl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_image.h
diff --git a/ui/gl/gl_image.h b/ui/gl/gl_image.h
index 214241396becbf60949ed713278eb9ee3323c782..cb92d66707054f7f1ce4ecdca5d1b52eb0e76456 100644
--- a/ui/gl/gl_image.h
+++ b/ui/gl/gl_image.h
@@ -27,6 +27,9 @@ class GL_EXPORT GLImage : public base::RefCounted<GLImage> {
// Get the size of the image.
virtual gfx::Size GetSize() = 0;
+ // Get the internal format of the image.
+ virtual unsigned GetInternalFormat() = 0;
+
// Bind image to texture currently bound to |target|.
virtual bool BindTexImage(unsigned target) = 0;
« no previous file with comments | « gpu/command_buffer/service/texture_definition.cc ('k') | ui/gl/gl_image_egl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698