Index: content/gpu/gpu_child_thread.cc |
diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc |
index e40928cd82a696d4dc88f320beac678296625d1a..40c808bdc18d570dd34aff2c150c1e6a321a69b0 100644 |
--- a/content/gpu/gpu_child_thread.cc |
+++ b/content/gpu/gpu_child_thread.cc |
@@ -81,6 +81,8 @@ class GpuMemoryBufferMessageFilter : public IPC::MessageFilter { |
const GpuMsg_CreateGpuMemoryBuffer_Params& params) { |
TRACE_EVENT2("gpu", "GpuMemoryBufferMessageFilter::OnCreateGpuMemoryBuffer", |
"id", params.id.id, "client_id", params.client_id); |
+ |
+ DCHECK(gpu_memory_buffer_factory_); |
sender_->Send(new GpuHostMsg_GpuMemoryBufferCreated( |
gpu_memory_buffer_factory_->CreateGpuMemoryBuffer( |
params.id, params.size, params.format, params.usage, |
@@ -166,15 +168,6 @@ GpuChildThread::~GpuChildThread() { |
} |
} |
-// static |
-gfx::GpuMemoryBufferType GpuChildThread::GetGpuMemoryBufferFactoryType() { |
- std::vector<gfx::GpuMemoryBufferType> supported_types; |
- GpuMemoryBufferFactory::GetSupportedTypes(&supported_types); |
- DCHECK(!supported_types.empty()); |
- // Note: We always use the preferred type. |
- return supported_types[0]; |
-} |
- |
void GpuChildThread::Shutdown() { |
ChildThreadImpl::Shutdown(); |
logging::SetLogMessageHandler(NULL); |