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

Unified Diff: gpu/command_buffer/client/gpu_memory_buffer_factory.h

Issue 14456004: GPU client side changes for GpuMemoryBuffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@glapi
Patch Set: Uploading again Created 7 years, 8 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/client/gpu_memory_buffer_factory.h
diff --git a/gpu/command_buffer/client/gpu_memory_buffer_factory.h b/gpu/command_buffer/client/gpu_memory_buffer_factory.h
index db15743d7b6cd4ef87904a4b89c8e11e1b8c6895..bdaf590452f2b271571b6ba8f79dcac52ca36021 100644
--- a/gpu/command_buffer/client/gpu_memory_buffer_factory.h
+++ b/gpu/command_buffer/client/gpu_memory_buffer_factory.h
@@ -10,17 +10,29 @@
namespace gpu {
+namespace gles2 {
+class ImageManager;
+}
+
// Getter and setter for a GpuMemoryBuffer factory for the current process.
// Currently it is only used for Android Webview where both browser and
// renderer are within the same process.
// It is not valid to call this method before the setter is called.
-const GpuMemoryBuffer::Creator& GetProcessDefaultGpuMemoryBufferFactory();
+GLES2_IMPL_EXPORT const GpuMemoryBuffer::Creator&
+ GetProcessDefaultGpuMemoryBufferFactory();
// It is illegal to call the setter more than once.
GLES2_IMPL_EXPORT void SetProcessDefaultGpuMemoryBufferFactory(
const GpuMemoryBuffer::Creator& factory);
+// It is not valid to call this method before the setter is called.
+GLES2_IMPL_EXPORT gles2::ImageManager* GetProcessDefaultImageManager();
+
+// It is illegal to call the setter more than once.
+GLES2_IMPL_EXPORT void SetProcessDefaultImageManager(
+ gles2::ImageManager* image_manager);
+
} // namespace gpu
#endif // GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698