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

Unified Diff: content/common/gpu/client/gpu_memory_buffer_impl_shm.cc

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_shm.cc
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_shm.cc b/content/common/gpu/client/gpu_memory_buffer_impl_shm.cc
index c550bf65f7ec2b660303dc5cf5bb1496127d48a8..61d5f9447de3ee6fa465024bb04819c50bf1323f 100644
--- a/content/common/gpu/client/gpu_memory_buffer_impl_shm.cc
+++ b/content/common/gpu/client/gpu_memory_buffer_impl_shm.cc
@@ -10,7 +10,10 @@ namespace content {
GpuMemoryBufferImplShm::GpuMemoryBufferImplShm(gfx::Size size,
unsigned internalformat)
- : GpuMemoryBufferImpl(size, internalformat) {}
+ : GpuMemoryBufferImpl(size,
+ internalformat,
+ gfx::GpuMemoryBuffer::READ_WRITE) {
+}
GpuMemoryBufferImplShm::~GpuMemoryBufferImplShm() {}
@@ -29,7 +32,7 @@ bool GpuMemoryBufferImplShm::InitializeFromSharedMemory(
return true;
}
-void* GpuMemoryBufferImplShm::Map(AccessMode mode) {
+void* GpuMemoryBufferImplShm::Map() {
DCHECK(!mapped_);
if (!shared_memory_->Map(size_.GetArea() * BytesPerPixel(internalformat_)))
return NULL;

Powered by Google App Engine
This is Rietveld 408576698