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

Side by Side Diff: ui/gfx/gpu_memory_buffer.h

Issue 2102293002: Remove GpuMemoryBuffer::IsInUseByMacOSWindowServer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused var Created 4 years, 5 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
« no previous file with comments | « media/renderers/mock_gpu_video_accelerator_factories.cc ('k') | ui/gfx/gpu_memory_buffer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef UI_GFX_GPU_MEMORY_BUFFER_H_ 5 #ifndef UI_GFX_GPU_MEMORY_BUFFER_H_
6 #define UI_GFX_GPU_MEMORY_BUFFER_H_ 6 #define UI_GFX_GPU_MEMORY_BUFFER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 virtual bool Map() = 0; 72 virtual bool Map() = 0;
73 73
74 // Returns a pointer to the memory address of a plane. Buffer must have been 74 // Returns a pointer to the memory address of a plane. Buffer must have been
75 // successfully mapped using a call to Map() before calling this function. 75 // successfully mapped using a call to Map() before calling this function.
76 virtual void* memory(size_t plane) = 0; 76 virtual void* memory(size_t plane) = 0;
77 77
78 // Unmaps the buffer. It's illegal to use any pointer returned by memory() 78 // Unmaps the buffer. It's illegal to use any pointer returned by memory()
79 // after this has been called. 79 // after this has been called.
80 virtual void Unmap() = 0; 80 virtual void Unmap() = 0;
81 81
82 // Returns true if the buffer is currently being read from by the system's
83 // window server, and should not be written to.
84 // TODO(ccameron): This is specific to the Mac OS WindowServer process, and
85 // should be merged with synchronization mechanisms from other platforms, if
86 // possible.
87 virtual bool IsInUseByMacOSWindowServer() const;
88
89 // Returns the size for the buffer. 82 // Returns the size for the buffer.
90 virtual Size GetSize() const = 0; 83 virtual Size GetSize() const = 0;
91 84
92 // Returns the format for the buffer. 85 // Returns the format for the buffer.
93 virtual BufferFormat GetFormat() const = 0; 86 virtual BufferFormat GetFormat() const = 0;
94 87
95 // Fills the stride in bytes for each plane of the buffer. The stride of 88 // Fills the stride in bytes for each plane of the buffer. The stride of
96 // plane K is stored at index K-1 of the |stride| array. 89 // plane K is stored at index K-1 of the |stride| array.
97 virtual int stride(size_t plane) const = 0; 90 virtual int stride(size_t plane) const = 0;
98 91
99 // Returns a unique identifier associated with buffer. 92 // Returns a unique identifier associated with buffer.
100 virtual GpuMemoryBufferId GetId() const = 0; 93 virtual GpuMemoryBufferId GetId() const = 0;
101 94
102 // Returns a platform specific handle for this buffer. 95 // Returns a platform specific handle for this buffer.
103 virtual GpuMemoryBufferHandle GetHandle() const = 0; 96 virtual GpuMemoryBufferHandle GetHandle() const = 0;
104 97
105 // Type-checking downcast routine. 98 // Type-checking downcast routine.
106 virtual ClientBuffer AsClientBuffer() = 0; 99 virtual ClientBuffer AsClientBuffer() = 0;
107 }; 100 };
108 101
109 } // namespace gfx 102 } // namespace gfx
110 103
111 #endif // UI_GFX_GPU_MEMORY_BUFFER_H_ 104 #endif // UI_GFX_GPU_MEMORY_BUFFER_H_
OLDNEW
« no previous file with comments | « media/renderers/mock_gpu_video_accelerator_factories.cc ('k') | ui/gfx/gpu_memory_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698