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

Unified Diff: ui/gl/gl_image.h

Issue 2999923002: Revert of Allow creating GLImage-backed textures with glTexStorage2D. (Closed)
Patch Set: rebase Created 3 years, 4 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/gl/gl_bindings.h ('k') | ui/gl/gl_image.cc » ('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 8a9b089041273773267686cebb1bb5b10c7cc579..c29eff60d28dbafcefa0cedb07dd5546541b08d6 100644
--- a/ui/gl/gl_image.h
+++ b/ui/gl/gl_image.h
@@ -97,9 +97,9 @@ class GL_EXPORT GLImage : public base::RefCounted<GLImage> {
enum class Type { NONE, MEMORY, IOSURFACE, DXGI_IMAGE };
virtual Type GetType() const;
- // Sets the color-space used to scanout from this image, if the image is
- // used as an overlay.
- virtual void SetColorSpaceForScanout(const gfx::ColorSpace& color_space);
+ void SetColorSpaceForScanout(const gfx::ColorSpace& color_space) {
+ color_space_ = color_space;
+ }
const gfx::ColorSpace& color_space() const { return color_space_; }
« no previous file with comments | « ui/gl/gl_bindings.h ('k') | ui/gl/gl_image.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698