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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 | 385 |
386 helper.reset(); | 386 helper.reset(); |
387 DCHECK(!gl_helper_) << "Destroying the GLHelper should not cause a new " | 387 DCHECK(!gl_helper_) << "Destroying the GLHelper should not cause a new " |
388 "GLHelper to be created."; | 388 "GLHelper to be created."; |
389 } | 389 } |
390 } | 390 } |
391 | 391 |
392 bool GpuProcessTransportFactory::DoesCreateTestContexts() { return false; } | 392 bool GpuProcessTransportFactory::DoesCreateTestContexts() { return false; } |
393 | 393 |
394 uint32 GpuProcessTransportFactory::GetImageTextureTarget( | 394 uint32 GpuProcessTransportFactory::GetImageTextureTarget( |
395 gfx::GpuMemoryBuffer::Format format, | 395 gfx::BufferFormat format, |
396 gfx::GpuMemoryBuffer::Usage usage) { | 396 gfx::BufferUsage usage) { |
397 return BrowserGpuMemoryBufferManager::GetImageTextureTarget(format, usage); | 397 return BrowserGpuMemoryBufferManager::GetImageTextureTarget(format, usage); |
398 } | 398 } |
399 | 399 |
400 cc::SharedBitmapManager* GpuProcessTransportFactory::GetSharedBitmapManager() { | 400 cc::SharedBitmapManager* GpuProcessTransportFactory::GetSharedBitmapManager() { |
401 return HostSharedBitmapManager::current(); | 401 return HostSharedBitmapManager::current(); |
402 } | 402 } |
403 | 403 |
404 gpu::GpuMemoryBufferManager* | 404 gpu::GpuMemoryBufferManager* |
405 GpuProcessTransportFactory::GetGpuMemoryBufferManager() { | 405 GpuProcessTransportFactory::GetGpuMemoryBufferManager() { |
406 return BrowserGpuMemoryBufferManager::current(); | 406 return BrowserGpuMemoryBufferManager::current(); |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 FOR_EACH_OBSERVER(ImageTransportFactoryObserver, | 598 FOR_EACH_OBSERVER(ImageTransportFactoryObserver, |
599 observer_list_, | 599 observer_list_, |
600 OnLostResources()); | 600 OnLostResources()); |
601 | 601 |
602 // Kill things that use the shared context before killing the shared context. | 602 // Kill things that use the shared context before killing the shared context. |
603 lost_gl_helper.reset(); | 603 lost_gl_helper.reset(); |
604 lost_shared_main_thread_contexts = NULL; | 604 lost_shared_main_thread_contexts = NULL; |
605 } | 605 } |
606 | 606 |
607 } // namespace content | 607 } // namespace content |
OLD | NEW |