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

Unified Diff: ui/gl/gl_image.h

Issue 1830453002: WebGL: GL_RGB emulation for IOSurface backed textures. [For reference only] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile error. Created 4 years, 9 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 | « ui/gfx/mac/io_surface.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 6b98fe995b8127d26fd47191959c56a6a09ec59f..69553855d2aa3a533fc297810013343eeb9807da 100644
--- a/ui/gl/gl_image.h
+++ b/ui/gl/gl_image.h
@@ -74,6 +74,10 @@ class GL_EXPORT GLImage : public base::RefCounted<GLImage> {
uint64_t process_tracing_id,
const std::string& dump_name) = 0;
+ // Whether the image is emulating an (GL_RGB or GL_BGR) internal format with
+ // (GL_RGBA or GL_BGRA).
+ virtual bool EmulatingRGB() const = 0;
+
protected:
virtual ~GLImage() {}
« no previous file with comments | « ui/gfx/mac/io_surface.cc ('k') | ui/gl/gl_image_egl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698