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

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: Compile error on Windows. 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..cdd3d1aadabc91ffb1bf48ab2935a50a385c7b02 100644
--- a/gpu/command_buffer/service/image_factory.h
+++ b/gpu/command_buffer/service/image_factory.h
@@ -30,6 +30,13 @@ 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) = 0;
+
protected:
virtual ~ImageFactory();
};

Powered by Google App Engine
This is Rietveld 408576698