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

Unified Diff: content/common/gpu/client/gpu_channel_host.h

Issue 10543125: gpu: Add support for GLX_EXT_texture_from_pixmap extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move CreateGLImage below virtual methods. Created 8 years, 2 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: content/common/gpu/client/gpu_channel_host.h
diff --git a/content/common/gpu/client/gpu_channel_host.h b/content/common/gpu/client/gpu_channel_host.h
index 2d10724ec1647f8eaa8c2797210827685cd9a62a..ba42f452b0ebc2fa9c923c4ded1177d937398345 100644
--- a/content/common/gpu/client/gpu_channel_host.h
+++ b/content/common/gpu/client/gpu_channel_host.h
@@ -56,6 +56,8 @@ struct GpuListenerInfo {
class CONTENT_EXPORT GpuChannelHostFactory {
public:
+ typedef base::Callback<void(const gfx::Size)> CreateImageCallback;
+
virtual ~GpuChannelHostFactory() {}
virtual bool IsMainThread() = 0;
@@ -68,6 +70,11 @@ class CONTENT_EXPORT GpuChannelHostFactory {
int32 surface_id, const GPUCreateCommandBufferConfig& init_params) = 0;
virtual GpuChannelHost* EstablishGpuChannelSync(
content::CauseForGpuLaunch) = 0;
+ virtual void CreateImage(
+ gfx::PluginWindowHandle window,
+ int32 image_id,
+ const CreateImageCallback& callback) = 0;
+ virtual void DeleteImage(int32 image_id) = 0;
};
// Encapsulates an IPC channel between the client and one GPU process.

Powered by Google App Engine
This is Rietveld 408576698