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

Unified Diff: ui/gl/gl_image.h

Issue 2930143004: Add DIRECT_COMPOSITION GpuMemoryBuffer type.
Patch Set: fix build Created 3 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 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() {}

Powered by Google App Engine
This is Rietveld 408576698