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

Unified Diff: content/common/gpu/gpu_memory_buffer_factory_shared_memory.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_shared_memory.h
diff --git a/content/common/gpu/gpu_memory_buffer_factory_shared_memory.h b/content/common/gpu/gpu_memory_buffer_factory_shared_memory.h
deleted file mode 100644
index 0d3291d4ff037722de30e5f822ac767febe47b28..0000000000000000000000000000000000000000
--- a/content/common/gpu/gpu_memory_buffer_factory_shared_memory.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_COMMON_GPU_GPU_MEMORY_BUFFER_FACTORY_SHARED_MEMORY_H_
-#define CONTENT_COMMON_GPU_GPU_MEMORY_BUFFER_FACTORY_SHARED_MEMORY_H_
-
-#include "base/memory/ref_counted.h"
-#include "content/common/gpu/gpu_memory_buffer_factory.h"
-#include "gpu/command_buffer/service/image_factory.h"
-#include "ui/gfx/geometry/size.h"
-#include "ui/gfx/gpu_memory_buffer.h"
-
-#if DCHECK_IS_ON()
-#include <set>
-#endif
-
-namespace gfx {
-class GLImage;
-}
-
-namespace content {
-
-class GpuMemoryBufferFactorySharedMemory : public GpuMemoryBufferFactory,
- public gpu::ImageFactory {
- public:
- GpuMemoryBufferFactorySharedMemory();
- ~GpuMemoryBufferFactorySharedMemory() override;
-
- static bool IsGpuMemoryBufferConfigurationSupported(gfx::BufferFormat format,
- gfx::BufferUsage usage);
-
- // Overridden from GpuMemoryBufferFactory:
- void GetSupportedGpuMemoryBufferConfigurations(
- std::vector<Configuration>* configurations) override;
- gfx::GpuMemoryBufferHandle CreateGpuMemoryBuffer(
- gfx::GpuMemoryBufferId id,
- const gfx::Size& size,
- gfx::BufferFormat format,
- gfx::BufferUsage usage,
- int client_id,
- gfx::PluginWindowHandle surface_handle) override;
- void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
- int client_id) override;
- gpu::ImageFactory* AsImageFactory() override;
-
- // Overridden from gpu::ImageFactory:
- scoped_refptr<gfx::GLImage> CreateImageForGpuMemoryBuffer(
- const gfx::GpuMemoryBufferHandle& handle,
- const gfx::Size& size,
- gfx::BufferFormat format,
- unsigned internalformat,
- int client_id) override;
-
- private:
-#if DCHECK_IS_ON()
- std::set<gfx::GpuMemoryBufferId> buffers_;
-#endif
-
- DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferFactorySharedMemory);
-};
-
-} // namespace content
-
-#endif // CONTENT_COMMON_GPU_GPU_MEMORY_BUFFER_FACTORY_SHARED_MEMORY_H_

Powered by Google App Engine
This is Rietveld 408576698