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

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

Issue 1389133002: content: Use type-parameterized tests for GpuMemoryBuffer implementations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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.h
diff --git a/content/common/gpu/gpu_memory_buffer_factory.h b/content/common/gpu/gpu_memory_buffer_factory.h
index 1269c960f203f0cd3c69896eb9c282c274b0f7f5..01b17858f80a07159c0d8dfcd6b21c231b4442d4 100644
--- a/content/common/gpu/gpu_memory_buffer_factory.h
+++ b/content/common/gpu/gpu_memory_buffer_factory.h
@@ -26,25 +26,15 @@ namespace content {
class CONTENT_EXPORT GpuMemoryBufferFactory {
public:
- struct Configuration {
- gfx::BufferFormat format;
- gfx::BufferUsage usage;
- };
-
virtual ~GpuMemoryBufferFactory() {}
- // Gets system supported GPU memory buffer factory types. Preferred type at
- // the front of vector.
- static void GetSupportedTypes(std::vector<gfx::GpuMemoryBufferType>* types);
+ // Returns the preferred native GPU memory buffer factory type.
+ static gfx::GpuMemoryBufferType GetNativeType();
// Creates a new factory instance for |type|.
static scoped_ptr<GpuMemoryBufferFactory> Create(
gfx::GpuMemoryBufferType type);
- // Gets supported format/usage configurations.
- virtual void GetSupportedGpuMemoryBufferConfigurations(
- std::vector<Configuration>* configurations) = 0;
-
// Creates a new GPU memory buffer instance. A valid handle is returned on
// success. It can be called on any thread.
virtual gfx::GpuMemoryBufferHandle CreateGpuMemoryBuffer(

Powered by Google App Engine
This is Rietveld 408576698