OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |