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

Unified Diff: gpu/command_buffer/service/image_factory.h

Issue 2061743004: Implement native GMB backbuffers in the GLES2 Command Decoder. (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: gpu/command_buffer/service/image_factory.h
diff --git a/gpu/command_buffer/service/image_factory.h b/gpu/command_buffer/service/image_factory.h
index cfa4cef27f0f6195c7608edbba5f1b0f1ad99348..1db88cc8ed7cb076aa6801a9b656d477668f57b1 100644
--- a/gpu/command_buffer/service/image_factory.h
+++ b/gpu/command_buffer/service/image_factory.h
@@ -30,6 +30,19 @@ class GPU_EXPORT ImageFactory {
unsigned internalformat,
int client_id) = 0;
+ // Create an anonymous GLImage backed by a GpuMemoryBuffer that doesn't have a
+ // client_id. It can't be passed to other processes.
+ virtual scoped_refptr<gl::GLImage> CreateAnonymousImage(
+ const gfx::Size& size,
+ gfx::BufferFormat format,
+ unsigned internalformat);
+
+ // An image can only be bound to a texture with the appropriate type.
+ virtual unsigned RequiredTextureType();
+
+ // Whether a created image can have format GL_RGB.
+ virtual bool SupportsFormatRGB();
+
protected:
virtual ~ImageFactory();
};
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc ('k') | gpu/command_buffer/service/image_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698