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

Unified Diff: ui/gl/gl_image_memory.cc

Issue 1140683002: glBindTexImage2DCHROMIUM should retain pixel format. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: ui/gl/gl_image_memory.cc
diff --git a/ui/gl/gl_image_memory.cc b/ui/gl/gl_image_memory.cc
index 56301dfab6c953acc677b27ea74f2259efcb79d7..a10153b94ffcdd239faf2e4a5782786e1a4ef6cc 100644
--- a/ui/gl/gl_image_memory.cc
+++ b/ui/gl/gl_image_memory.cc
@@ -238,6 +238,10 @@ Size GLImageMemory::GetSize() {
return size_;
}
+unsigned GLImageMemory::GetFormat() {
+ return internalformat_;
+}
+
bool GLImageMemory::BindTexImage(unsigned target) {
if (target_ && target_ != target) {
LOG(ERROR) << "GLImage can only be bound to one target";

Powered by Google App Engine
This is Rietveld 408576698