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

Unified Diff: ui/gl/gl_image.h

Issue 1870483003: Add command buffer support for GL_RGB CHROMIUM image emulation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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.h
diff --git a/ui/gl/gl_image.h b/ui/gl/gl_image.h
index 6b98fe995b8127d26fd47191959c56a6a09ec59f..cf6429d7e81e24f44bb6b644daba88b9662880f9 100644
--- a/ui/gl/gl_image.h
+++ b/ui/gl/gl_image.h
@@ -74,6 +74,13 @@ class GL_EXPORT GLImage : public base::RefCounted<GLImage> {
uint64_t process_tracing_id,
const std::string& dump_name) = 0;
+ // If this returns true, then the command buffer client has requested a
+ // CHROMIUM image with internalformat GL_RGB, but the platform only supports
+ // GL_RGBA. The client is responsible for implementing appropriate
+ // workarounds. The only support that the command buffer provides is format
+ // validation during calls to copyTexImage2D and copySubTexImage2D.
+ virtual bool EmulatingRGB() const;
reveman 2016/04/07 13:00:56 Maybe I'm just being defensive of the code I've de
Ken Russell (switch to Gerrit) 2016/04/07 21:41:14 The comments don't need to reference the command b
reveman 2016/04/08 15:59:38 Why do we need to record it at all? Isn't Emulatin
+
protected:
virtual ~GLImage() {}

Powered by Google App Engine
This is Rietveld 408576698