Chromium Code Reviews| Index: ui/gl/gl_image.h |
| diff --git a/ui/gl/gl_image.h b/ui/gl/gl_image.h |
| index 3e34bbf32b0be0c3e8ec001de8c1493c8c90bc5a..fc30151c26be60eaeb0b3d0e0f5621abc413d766 100644 |
| --- a/ui/gl/gl_image.h |
| +++ b/ui/gl/gl_image.h |
| @@ -26,6 +26,7 @@ class ProcessMemoryDump; |
| } |
| namespace gl { |
| +class GLSurface; |
| // Encapsulates an image that can be bound and/or copied to a texture, hiding |
| // platform specific management. |
| @@ -93,9 +94,11 @@ class GL_EXPORT GLImage : public base::RefCounted<GLImage> { |
| virtual bool EmulatingRGB() const; |
| // An identifier for subclasses. Necessary for safe downcasting. |
| - enum class Type { NONE, MEMORY, IOSURFACE, DXGI_IMAGE }; |
| + enum class Type { NONE, MEMORY, IOSURFACE, DXGI_IMAGE, DIRECT_COMPOSITION }; |
|
reveman
2017/06/14 21:35:59
This type of downcasting is an indication that're
jbauman
2017/06/14 22:18:17
I guess I could have windows-only GetSwapChain() a
|
| virtual Type GetType() const; |
| + virtual scoped_refptr<GLSurface> GetSurface(); |
|
reveman
2017/06/14 21:35:59
How is this suppose to be used? Can we do somethin
jbauman
2017/06/14 22:18:17
This is actually going to be used to draw into the
|
| + |
| protected: |
| virtual ~GLImage() {} |