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

Unified Diff: content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.h

Issue 634083002: gpu: Compositor management of GpuMemoryBuffer instances. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cc-pre-chromium-image-refactor
Patch Set: rebase Created 6 years, 2 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_ozone_native_buffer.h
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.h b/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.h
index 8a968a5bdafc30b030f7c0199e41926f0de9a996..a71ef14aa71a807751e1bc566ea0ade299420d91 100644
--- a/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.h
+++ b/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.h
@@ -13,26 +13,24 @@ namespace content {
class GpuMemoryBufferImplOzoneNativeBuffer : public GpuMemoryBufferImpl {
public:
static void Create(const gfx::Size& size,
- unsigned internalformat,
- unsigned usage,
+ Format format,
int client_id,
const CreationCallback& callback);
static void AllocateForChildProcess(const gfx::Size& size,
- unsigned internalformat,
- unsigned usage,
+ Format format,
int child_client_id,
const AllocationCallback& callback);
static scoped_ptr<GpuMemoryBufferImpl> CreateFromHandle(
const gfx::GpuMemoryBufferHandle& handle,
const gfx::Size& size,
- unsigned internalformat,
+ Format format,
const DestructionCallback& callback);
- static bool IsFormatSupported(unsigned internalformat);
- static bool IsUsageSupported(unsigned usage);
- static bool IsConfigurationSupported(unsigned internalformat, unsigned usage);
+ static bool IsFormatSupported(Format format);
+ static bool IsUsageSupported(Usage usage);
+ static bool IsConfigurationSupported(Format format, Usage usage);
// Overridden from gfx::GpuMemoryBuffer:
virtual void* Map() override;
@@ -42,7 +40,7 @@ class GpuMemoryBufferImplOzoneNativeBuffer : public GpuMemoryBufferImpl {
private:
GpuMemoryBufferImplOzoneNativeBuffer(const gfx::Size& size,
- unsigned internalformat,
+ Format format,
const DestructionCallback& callback,
const gfx::GpuMemoryBufferId& id);
virtual ~GpuMemoryBufferImplOzoneNativeBuffer();

Powered by Google App Engine
This is Rietveld 408576698