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

Side by Side Diff: gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.h

Issue 2819803002: Reorganize GUIDs for GPU memory buffers (Closed)
Patch Set: Address on reviews Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef GPU_IPC_CLIENT_GPU_MEMORY_BUFFER_IMPL_SHARED_MEMORY_H_ 5 #ifndef GPU_IPC_CLIENT_GPU_MEMORY_BUFFER_IMPL_SHARED_MEMORY_H_
6 #define GPU_IPC_CLIENT_GPU_MEMORY_BUFFER_IMPL_SHARED_MEMORY_H_ 6 #define GPU_IPC_CLIENT_GPU_MEMORY_BUFFER_IMPL_SHARED_MEMORY_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 gfx::BufferFormat format, 48 gfx::BufferFormat format,
49 gfx::BufferUsage usage, 49 gfx::BufferUsage usage,
50 gfx::GpuMemoryBufferHandle* handle); 50 gfx::GpuMemoryBufferHandle* handle);
51 51
52 // Overridden from gfx::GpuMemoryBuffer: 52 // Overridden from gfx::GpuMemoryBuffer:
53 bool Map() override; 53 bool Map() override;
54 void* memory(size_t plane) override; 54 void* memory(size_t plane) override;
55 void Unmap() override; 55 void Unmap() override;
56 int stride(size_t plane) const override; 56 int stride(size_t plane) const override;
57 gfx::GpuMemoryBufferHandle GetHandle() const override; 57 gfx::GpuMemoryBufferHandle GetHandle() const override;
58 base::trace_event::MemoryAllocatorDumpGuid GetGUIDForTracing(
59 uint64_t tracing_process_id) const override;
58 60
59 private: 61 private:
60 GpuMemoryBufferImplSharedMemory( 62 GpuMemoryBufferImplSharedMemory(
61 gfx::GpuMemoryBufferId id, 63 gfx::GpuMemoryBufferId id,
62 const gfx::Size& size, 64 const gfx::Size& size,
63 gfx::BufferFormat format, 65 gfx::BufferFormat format,
64 const DestructionCallback& callback, 66 const DestructionCallback& callback,
65 std::unique_ptr<base::SharedMemory> shared_memory, 67 std::unique_ptr<base::SharedMemory> shared_memory,
66 size_t offset, 68 size_t offset,
67 int stride); 69 int stride);
68 70
69 std::unique_ptr<base::SharedMemory> shared_memory_; 71 std::unique_ptr<base::SharedMemory> shared_memory_;
70 size_t offset_; 72 size_t offset_;
71 int stride_; 73 int stride_;
72 74
73 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImplSharedMemory); 75 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImplSharedMemory);
74 }; 76 };
75 77
76 } // namespace gpu 78 } // namespace gpu
77 79
78 #endif // GPU_IPC_CLIENT_GPU_MEMORY_BUFFER_IMPL_SHARED_MEMORY_H_ 80 #endif // GPU_IPC_CLIENT_GPU_MEMORY_BUFFER_IMPL_SHARED_MEMORY_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/browser_gpu_memory_buffer_manager.cc ('k') | gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698