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

Unified Diff: gpu/command_buffer/client/gpu_memory_buffer_factory.cc

Issue 14456004: GPU client side changes for GpuMemoryBuffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@glapi
Patch Set: Add missing parameter in GLES2Implementation ctor in GLES2Implementation unittest Created 7 years, 7 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: gpu/command_buffer/client/gpu_memory_buffer_factory.cc
diff --git a/gpu/command_buffer/client/gpu_memory_buffer_factory.cc b/gpu/command_buffer/client/gpu_memory_buffer_factory.cc
index c0e5b9f60995db5efa330a78f3606b3c4433fd4e..57fcef728501cf9954d251526d0c2204a5bd34d4 100644
--- a/gpu/command_buffer/client/gpu_memory_buffer_factory.cc
+++ b/gpu/command_buffer/client/gpu_memory_buffer_factory.cc
@@ -7,19 +7,23 @@
#include "base/logging.h"
namespace gpu {
+namespace gles2 {
namespace {
GpuMemoryBuffer::Creator* g_gpu_memory_buffer_factory_ = NULL;
}
const GpuMemoryBuffer::Creator& GetProcessDefaultGpuMemoryBufferFactory() {
+ DCHECK(g_gpu_memory_buffer_factory_ != NULL);
return *g_gpu_memory_buffer_factory_;
}
void SetProcessDefaultGpuMemoryBufferFactory(
const GpuMemoryBuffer::Creator& factory) {
DCHECK(g_gpu_memory_buffer_factory_ == NULL);
+ // TODO(kaanb): move the ownership of this memory to android_webview
g_gpu_memory_buffer_factory_ = new GpuMemoryBuffer::Creator(factory);
}
+} // namespace gles2
} // namespace gpu
« no previous file with comments | « gpu/command_buffer/client/gpu_memory_buffer_factory.h ('k') | gpu/command_buffer/client/gpu_memory_buffer_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698