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

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

Issue 634643002: content: Out-of-process GPU service support for SurfaceTexture backed GpuMemoryBuffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one last build fix Created 6 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_memory_buffer_impl_surface_texture.h
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.h b/content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.h
index 643629ee8688f3861fc3b21bb2ccdaee2611c6c7..fdc42f44bb26568ae6dd0c0d4ca3f3e85ca721d4 100644
--- a/content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.h
+++ b/content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.h
@@ -14,6 +14,18 @@ namespace content {
// Implementation of GPU memory buffer based on SurfaceTextures.
class GpuMemoryBufferImplSurfaceTexture : public GpuMemoryBufferImpl {
public:
+ static void Create(const gfx::Size& size,
+ unsigned internalformat,
+ unsigned usage,
+ int client_id,
+ const CreationCallback& callback);
+
+ static void AllocateForChildProcess(const gfx::Size& size,
+ unsigned internalformat,
+ unsigned usage,
+ int child_client_id,
+ const AllocationCallback& callback);
+
static scoped_ptr<GpuMemoryBufferImpl> CreateFromHandle(
const gfx::GpuMemoryBufferHandle& handle,
const gfx::Size& size,
@@ -32,15 +44,14 @@ class GpuMemoryBufferImplSurfaceTexture : public GpuMemoryBufferImpl {
virtual uint32 GetStride() const override;
private:
- GpuMemoryBufferImplSurfaceTexture(
- const gfx::Size& size,
- unsigned internalformat,
- const DestructionCallback& callback,
- const gfx::SurfaceTextureId& surface_texture_id,
- ANativeWindow* native_window);
+ GpuMemoryBufferImplSurfaceTexture(const gfx::Size& size,
+ unsigned internalformat,
+ const DestructionCallback& callback,
+ const gfx::GpuMemoryBufferId& id,
+ ANativeWindow* native_window);
virtual ~GpuMemoryBufferImplSurfaceTexture();
- gfx::SurfaceTextureId surface_texture_id_;
+ gfx::GpuMemoryBufferId id_;
ANativeWindow* native_window_;
size_t stride_;

Powered by Google App Engine
This is Rietveld 408576698