Index: ui/gl/gl_image.h |
diff --git a/ui/gl/gl_image.h b/ui/gl/gl_image.h |
index 6b98fe995b8127d26fd47191959c56a6a09ec59f..a3228c82dc772422f9f4e2725081365ef45a7757 100644 |
--- a/ui/gl/gl_image.h |
+++ b/ui/gl/gl_image.h |
@@ -25,6 +25,10 @@ class ProcessMemoryDump; |
} |
} |
+namespace gfx { |
+class Transform; |
+} |
+ |
namespace gl { |
// Encapsulates an image that can be bound and/or copied to a texture, hiding |
@@ -74,6 +78,13 @@ class GL_EXPORT GLImage : public base::RefCounted<GLImage> { |
uint64_t process_tracing_id, |
const std::string& dump_name) = 0; |
+ // Get the matrix |
+ // Copy a custom matrix for this image into |matrix|. |matrixId| describes |
+ // the matrix in question. Returns true if |matrix| is filled in, false |
+ // if this GLImage doesn't support the custom matrix. |matrix| is unmodified |
+ // in that case. |
+ virtual bool GetCustomMatrix(int matrixId, float matrix[16]); |
+ |
protected: |
virtual ~GLImage() {} |