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

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

Issue 263553009: content: Cleanup GpuMemoryBuffer allocation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mac build fix 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.cc
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl.cc b/content/common/gpu/client/gpu_memory_buffer_impl.cc
index a1e539ff366b770231bfdd9a31355eb7d4bee1a1..b3cd98332b41d82eecec0e17434bfb01d865a78d 100644
--- a/content/common/gpu/client/gpu_memory_buffer_impl.cc
+++ b/content/common/gpu/client/gpu_memory_buffer_impl.cc
@@ -8,7 +8,7 @@
namespace content {
-GpuMemoryBufferImpl::GpuMemoryBufferImpl(gfx::Size size,
+GpuMemoryBufferImpl::GpuMemoryBufferImpl(const gfx::Size& size,
unsigned internalformat)
: size_(size), internalformat_(internalformat), mapped_(false) {
DCHECK(IsFormatValid(internalformat));
@@ -52,8 +52,4 @@ size_t GpuMemoryBufferImpl::BytesPerPixel(unsigned internalformat) {
bool GpuMemoryBufferImpl::IsMapped() const { return mapped_; }
-uint32 GpuMemoryBufferImpl::GetStride() const {
- return size_.width() * BytesPerPixel(internalformat_);
-}
-
} // namespace content
« no previous file with comments | « content/common/gpu/client/gpu_memory_buffer_impl.h ('k') | content/common/gpu/client/gpu_memory_buffer_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698