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

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

Issue 699073004: content: Add command line flag for native GPU memory buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gpu-memory-buffer-impl-unittests
Patch Set: rebase and use correct texture target Created 6 years, 1 month 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.h
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl.h b/content/common/gpu/client/gpu_memory_buffer_impl.h
index 5409c545c48a073f1f73b083d3d402e10f96f6dd..aa56cbf60404022136bc64112c44e3f5142d383d 100644
--- a/content/common/gpu/client/gpu_memory_buffer_impl.h
+++ b/content/common/gpu/client/gpu_memory_buffer_impl.h
@@ -5,6 +5,7 @@
#ifndef CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_H_
#define CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_H_
+#include <string>
#include <vector>
#include "base/callback.h"
@@ -26,6 +27,12 @@ class CONTENT_EXPORT GpuMemoryBufferImpl : public gfx::GpuMemoryBuffer {
~GpuMemoryBufferImpl() override;
+ // Gets the GPU memory buffer type with a given name.
+ static gfx::GpuMemoryBufferType GetNamedType(const std::string& name);
+
+ // Gets the name of a GPU memory buffer type.
+ static const char* GetTypeName(gfx::GpuMemoryBufferType type);
+
// Gets system supported GPU memory buffer types. Preferred type at the front
// of vector.
static void GetSupportedTypes(std::vector<gfx::GpuMemoryBufferType>* types);

Powered by Google App Engine
This is Rietveld 408576698