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

Side by Side Diff: content/browser/compositor/gpu_process_transport_factory.cc

Issue 656263003: cc: Move GpuMemoryBufferManager interface to gpu namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn build fix 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/compositor/gpu_process_transport_factory.h" 5 #include "content/browser/compositor/gpu_process_transport_factory.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 "GLHelper to be created."; 338 "GLHelper to be created.";
339 } 339 }
340 } 340 }
341 341
342 bool GpuProcessTransportFactory::DoesCreateTestContexts() { return false; } 342 bool GpuProcessTransportFactory::DoesCreateTestContexts() { return false; }
343 343
344 cc::SharedBitmapManager* GpuProcessTransportFactory::GetSharedBitmapManager() { 344 cc::SharedBitmapManager* GpuProcessTransportFactory::GetSharedBitmapManager() {
345 return HostSharedBitmapManager::current(); 345 return HostSharedBitmapManager::current();
346 } 346 }
347 347
348 cc::GpuMemoryBufferManager* 348 gpu::GpuMemoryBufferManager*
349 GpuProcessTransportFactory::GetGpuMemoryBufferManager() { 349 GpuProcessTransportFactory::GetGpuMemoryBufferManager() {
350 return BrowserGpuMemoryBufferManager::current(); 350 return BrowserGpuMemoryBufferManager::current();
351 } 351 }
352 352
353 ui::ContextFactory* GpuProcessTransportFactory::GetContextFactory() { 353 ui::ContextFactory* GpuProcessTransportFactory::GetContextFactory() {
354 return this; 354 return this;
355 } 355 }
356 356
357 base::MessageLoopProxy* GpuProcessTransportFactory::GetCompositorMessageLoop() { 357 base::MessageLoopProxy* GpuProcessTransportFactory::GetCompositorMessageLoop() {
358 if (!compositor_thread_) 358 if (!compositor_thread_)
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 FOR_EACH_OBSERVER(ImageTransportFactoryObserver, 504 FOR_EACH_OBSERVER(ImageTransportFactoryObserver,
505 observer_list_, 505 observer_list_,
506 OnLostResources()); 506 OnLostResources());
507 507
508 // Kill things that use the shared context before killing the shared context. 508 // Kill things that use the shared context before killing the shared context.
509 lost_gl_helper.reset(); 509 lost_gl_helper.reset();
510 lost_shared_main_thread_contexts = NULL; 510 lost_shared_main_thread_contexts = NULL;
511 } 511 }
512 512
513 } // namespace content 513 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/compositor/gpu_process_transport_factory.h ('k') | content/browser/gpu/browser_gpu_memory_buffer_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698