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

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

Issue 255713008: Change glimage to accept a type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 7 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 01628f2c5c9f49a7f30ca3d4034eaf1912f595a8..d2f0a231b0ea318faf3fcc8dd0605fdf7b24aa18 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
@@ -20,10 +20,11 @@ class GpuMemoryBufferImplSurfaceTexture : public GpuMemoryBufferImpl {
bool Initialize(gfx::GpuMemoryBufferHandle handle);
static bool IsFormatSupported(unsigned internalformat);
+ static bool IsUsageSupported(unsigned usage);
static int WindowFormat(unsigned internalformat);
// Overridden from gfx::GpuMemoryBuffer:
- virtual void* Map(AccessMode mode) OVERRIDE;
+ virtual void* Map() OVERRIDE;
virtual void Unmap() OVERRIDE;
virtual gfx::GpuMemoryBufferHandle GetHandle() const OVERRIDE;
virtual uint32 GetStride() const OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698