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

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

Issue 255713008: Change glimage to accept a type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no ozone Created 6 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: content/common/gpu/client/gpu_memory_buffer_impl.h
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl.h b/content/common/gpu/client/gpu_memory_buffer_impl.h
index ee85f0f7b57ee02d73e5bca5e74ab26cf8cf77c6..8baf3c22e7a450561a7c55787141396dfd60c4af 100644
--- a/content/common/gpu/client/gpu_memory_buffer_impl.h
+++ b/content/common/gpu/client/gpu_memory_buffer_impl.h
@@ -17,7 +17,8 @@ class GpuMemoryBufferImpl : public gfx::GpuMemoryBuffer {
static scoped_ptr<GpuMemoryBufferImpl> Create(
gfx::GpuMemoryBufferHandle handle,
gfx::Size size,
- unsigned internalformat);
+ unsigned internalformat,
+ gfx::GpuMemoryBuffer::Usage usage);
virtual ~GpuMemoryBufferImpl();
@@ -29,10 +30,13 @@ class GpuMemoryBufferImpl : public gfx::GpuMemoryBuffer {
virtual uint32 GetStride() const OVERRIDE;
protected:
- GpuMemoryBufferImpl(gfx::Size size, unsigned internalformat);
+ GpuMemoryBufferImpl(gfx::Size size,
+ unsigned internalformat,
+ gfx::GpuMemoryBuffer::Usage usage);
const gfx::Size size_;
unsigned internalformat_;
+ gfx::GpuMemoryBuffer::Usage usage_;
reveman 2014/04/30 11:31:28 Doesn't seem to be used by this class. I don't thi
bool mapped_;
DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImpl);

Powered by Google App Engine
This is Rietveld 408576698