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

Unified Diff: content/common/gpu/gpu_memory_buffer_factory_io_surface.h

Issue 1389133002: content: Use type-parameterized tests for GpuMemoryBuffer implementations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add blankline Created 5 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/gpu_memory_buffer_factory_io_surface.h
diff --git a/content/common/gpu/gpu_memory_buffer_factory_io_surface.h b/content/common/gpu/gpu_memory_buffer_factory_io_surface.h
index 77a2e7f1d275271fdc9e177179679e75f462fa81..1cafa794ccfa216616223fc16c13e28f84cbbe69 100644
--- a/content/common/gpu/gpu_memory_buffer_factory_io_surface.h
+++ b/content/common/gpu/gpu_memory_buffer_factory_io_surface.h
@@ -5,12 +5,15 @@
#ifndef CONTENT_COMMON_GPU_GPU_MEMORY_BUFFER_FACTORY_IO_SURFACE_H_
#define CONTENT_COMMON_GPU_GPU_MEMORY_BUFFER_FACTORY_IO_SURFACE_H_
+#include <utility>
+
#include <IOSurface/IOSurface.h>
#include "base/containers/hash_tables.h"
#include "base/mac/scoped_cftyperef.h"
#include "base/memory/ref_counted.h"
#include "base/synchronization/lock.h"
+#include "content/common/content_export.h"
#include "content/common/gpu/gpu_memory_buffer_factory.h"
#include "content/common/mac/io_surface_manager.h"
#include "gpu/command_buffer/service/image_factory.h"
@@ -23,8 +26,9 @@ class GLImage;
namespace content {
-class GpuMemoryBufferFactoryIOSurface : public GpuMemoryBufferFactory,
- public gpu::ImageFactory {
+class CONTENT_EXPORT GpuMemoryBufferFactoryIOSurface
+ : public GpuMemoryBufferFactory,
+ public gpu::ImageFactory {
public:
GpuMemoryBufferFactoryIOSurface();
~GpuMemoryBufferFactoryIOSurface() override;
@@ -32,9 +36,10 @@ class GpuMemoryBufferFactoryIOSurface : public GpuMemoryBufferFactory,
static bool IsGpuMemoryBufferConfigurationSupported(gfx::BufferFormat format,
gfx::BufferUsage usage);
+ static IOSurfaceRef CreateIOSurface(const gfx::Size& size,
+ gfx::BufferFormat format);
+
// Overridden from GpuMemoryBufferFactory:
- void GetSupportedGpuMemoryBufferConfigurations(
- std::vector<Configuration>* configurations) override;
gfx::GpuMemoryBufferHandle CreateGpuMemoryBuffer(
gfx::GpuMemoryBufferId id,
const gfx::Size& size,
« no previous file with comments | « content/common/gpu/gpu_memory_buffer_factory.cc ('k') | content/common/gpu/gpu_memory_buffer_factory_io_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698