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

Unified Diff: gpu/command_buffer/service/texture_definition.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: gpu/command_buffer/service/texture_definition.cc
diff --git a/gpu/command_buffer/service/texture_definition.cc b/gpu/command_buffer/service/texture_definition.cc
index d81d2583b39b650f5c27b97d41b034d26e0cd73c..083b2ff6617afad14698164f434ec816ca95967d 100644
--- a/gpu/command_buffer/service/texture_definition.cc
+++ b/gpu/command_buffer/service/texture_definition.cc
@@ -31,6 +31,7 @@ class GLImageSync : public gfx::GLImage {
// Implement GLImage.
void Destroy(bool have_context) override;
gfx::Size GetSize() override;
+ unsigned GetFormat() override;
bool BindTexImage(unsigned target) override;
void ReleaseTexImage(unsigned target) override;
bool CopyTexImage(unsigned target) override;
@@ -73,6 +74,10 @@ gfx::Size GLImageSync::GetSize() {
return size_;
}
+unsigned GLImageSync::GetFormat() {
+ return GL_RGBA;
+}
+
bool GLImageSync::BindTexImage(unsigned target) {
NOTREACHED();
return false;

Powered by Google App Engine
This is Rietveld 408576698