Chromium Code Reviews| 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() {} |