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

Side by Side Diff: content/common/gpu/client/gpu_memory_buffer_impl_win.cc

Issue 654223006: Cleanup GpuMemoryBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/common/gpu/client/gpu_memory_buffer_impl.h" 5 #include "content/common/gpu/client/gpu_memory_buffer_impl.h"
6 6
7 #include "content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h" 7 #include "content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h"
8 8
9 namespace content { 9 namespace content {
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 const DestructionCallback& callback) { 56 const DestructionCallback& callback) {
57 switch (handle.type) { 57 switch (handle.type) {
58 case gfx::SHARED_MEMORY_BUFFER: 58 case gfx::SHARED_MEMORY_BUFFER:
59 return GpuMemoryBufferImplSharedMemory::CreateFromHandle( 59 return GpuMemoryBufferImplSharedMemory::CreateFromHandle(
60 handle, size, format, callback); 60 handle, size, format, callback);
61 default: 61 default:
62 return scoped_ptr<GpuMemoryBufferImpl>(); 62 return scoped_ptr<GpuMemoryBufferImpl>();
63 } 63 }
64 } 64 }
65 65
66 // static
67 bool GpuMemoryBufferImpl::NeedsDestructionSyncPoint(
68 gfx::GpuMemoryBufferType type) {
69 return false;
70 }
71
66 } // namespace content 72 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698