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/client/gpu_memory_buffer_factory_host.h

Issue 458313002: Browser side OZONE_NATIVE_BUFFER allocation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more fixes Created 6 years, 4 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/client/gpu_memory_buffer_factory_host.h
diff --git a/content/common/gpu/client/gpu_memory_buffer_factory_host.h b/content/common/gpu/client/gpu_memory_buffer_factory_host.h
index 6dfd58beabaa88f55ab0926f2b26353cb4eb02ba..89d42c986bfd4022d84bc2337a0b54b6a54b96a4 100644
--- a/content/common/gpu/client/gpu_memory_buffer_factory_host.h
+++ b/content/common/gpu/client/gpu_memory_buffer_factory_host.h
@@ -6,6 +6,7 @@
#define CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_FACTORY_HOST_H_
#include "base/callback.h"
+#include "content/common/content_export.h"
namespace gfx {
class Size;
@@ -28,8 +29,11 @@ class CONTENT_EXPORT GpuMemoryBufferFactoryHost {
virtual void DestroyGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle,
int32 sync_point) = 0;
+ static GpuMemoryBufferFactoryHost* GetInstance();
reveman 2014/08/13 17:00:25 nit: I'd move this static method above all virtual
reveman 2014/08/13 17:00:25 Don't we need a InitInstance or SetInstance too? a
achaulk 2014/08/13 17:10:12 Forgot to add the new file. I'm currently just doi
+
protected:
- virtual ~GpuMemoryBufferFactoryHost() {}
+ GpuMemoryBufferFactoryHost();
+ virtual ~GpuMemoryBufferFactoryHost();
reveman 2014/08/13 17:00:26 hm, why do you need to change this?
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698