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

Unified Diff: ui/gl/gl_image.h

Issue 1559203003: Add GLStreamTextureImage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: getCustomMatrix Created 4 years, 10 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 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() {}

Powered by Google App Engine
This is Rietveld 408576698