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

Unified Diff: ui/gl/gl_image.h

Issue 2106843002: Remove unsafe cast from ImageTransportSurfaceOverlayMac::ScheduleCALayer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments from piman. Created 4 years, 6 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 929970ea9e43b35546cf62284012e1640f65b3a5..8a7a21203f9404196d8a10caae8afc27ca042ae5 100644
--- a/ui/gl/gl_image.h
+++ b/ui/gl/gl_image.h
@@ -85,6 +85,13 @@ class GL_EXPORT GLImage : public base::RefCounted<GLImage> {
// removed. https://crbug.com/581777#c36
virtual bool EmulatingRGB() const;
+ // An identifier for subclasses. Necessary for safe downcasting.
+ enum class Type {
+ NONE,
+ IOSURFACE
+ };
+ virtual Type GetType() const;
+
protected:
virtual ~GLImage() {}

Powered by Google App Engine
This is Rietveld 408576698