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

Unified Diff: gpu/command_buffer/service/image_factory.h

Issue 1849313002: Pull gpu CmdBuf service/client shared GpuMemoryBuffer code to common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 4 years, 8 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
« no previous file with comments | « gpu/command_buffer/common/gpu_memory_buffer_support.cc ('k') | gpu/command_buffer/service/image_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/image_factory.h
diff --git a/gpu/command_buffer/service/image_factory.h b/gpu/command_buffer/service/image_factory.h
index c27c24594ac950eee25c88ac51989b2f2ac582e6..cfa4cef27f0f6195c7608edbba5f1b0f1ad99348 100644
--- a/gpu/command_buffer/service/image_factory.h
+++ b/gpu/command_buffer/service/image_factory.h
@@ -15,32 +15,11 @@ class GLImage;
}
namespace gpu {
-struct Capabilities;
class GPU_EXPORT ImageFactory {
public:
ImageFactory();
- // Returns a valid GpuMemoryBuffer format given a valid internalformat as
- // defined by CHROMIUM_gpu_memory_buffer_image.
- static gfx::BufferFormat DefaultBufferFormatForImageFormat(
- unsigned internalformat);
-
- // Returns true if |internalformat| is compatible with |format|.
- static bool IsImageFormatCompatibleWithGpuMemoryBufferFormat(
- unsigned internalformat,
- gfx::BufferFormat format);
-
- // Returns true if |format| is supported by |capabilities|.
- static bool IsGpuMemoryBufferFormatSupported(
- gfx::BufferFormat format,
- const Capabilities& capabilities);
-
- // Returns true if |size| is valid for |format|.
- static bool IsImageSizeValidForGpuMemoryBufferFormat(
- const gfx::Size& size,
- gfx::BufferFormat format);
-
// Creates a GLImage instance for GPU memory buffer identified by |handle|.
// |client_id| should be set to the client requesting the creation of instance
// and can be used by factory implementation to verify access rights.
« no previous file with comments | « gpu/command_buffer/common/gpu_memory_buffer_support.cc ('k') | gpu/command_buffer/service/image_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698