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

Unified Diff: content/gpu/gpu_main.cc

Issue 2781293003: gpu: Have GpuService create and own GpuMemoryBufferFactory. (Closed)
Patch Set: tot merge. Created 3 years, 9 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 | « content/gpu/gpu_child_thread.cc ('k') | content/gpu/in_process_gpu_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_main.cc
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
index b0d35843a0e6aaea8325f6c64d3b38e0c4e7956b..5d9ae2ef68676f445c038464b74586034469512e 100644
--- a/content/gpu/gpu_main.cc
+++ b/content/gpu/gpu_main.cc
@@ -37,7 +37,6 @@
#include "gpu/ipc/common/gpu_memory_buffer_support.h"
#include "gpu/ipc/service/gpu_config.h"
#include "gpu/ipc/service/gpu_init.h"
-#include "gpu/ipc/service/gpu_memory_buffer_factory.h"
#include "gpu/ipc/service/gpu_watchdog_thread.h"
#include "ui/events/platform/platform_event_source.h"
#include "ui/gfx/switches.h"
@@ -272,11 +271,6 @@ int GpuMain(const MainFunctionParams& parameters) {
logging::SetLogMessageHandler(NULL);
GetContentClient()->SetGpuInfo(gpu_init.gpu_info());
- std::unique_ptr<gpu::GpuMemoryBufferFactory> gpu_memory_buffer_factory;
- if (init_success &&
- gpu::GetNativeGpuMemoryBufferType() != gfx::EMPTY_BUFFER)
- gpu_memory_buffer_factory = gpu::GpuMemoryBufferFactory::CreateNativeType();
-
base::ThreadPriority io_thread_priority = base::ThreadPriority::NORMAL;
#if defined(OS_ANDROID) || defined(OS_CHROMEOS)
io_thread_priority = base::ThreadPriority::DISPLAY;
@@ -285,8 +279,7 @@ int GpuMain(const MainFunctionParams& parameters) {
GpuProcess gpu_process(io_thread_priority);
GpuChildThread* child_thread = new GpuChildThread(
gpu_init.TakeWatchdogThread(), dead_on_arrival, gpu_init.gpu_info(),
- gpu_init.gpu_feature_info(), std::move(deferred_messages.Get()),
- gpu_memory_buffer_factory.get());
+ gpu_init.gpu_feature_info(), std::move(deferred_messages.Get()));
deferred_messages.Get().clear();
child_thread->Init(start_time);
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | content/gpu/in_process_gpu_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698