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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 ImageTransportFactoryObserver, observer_list_, OnLostResources()); | 325 ImageTransportFactoryObserver, observer_list_, OnLostResources()); |
326 | 326 |
327 helper.reset(); | 327 helper.reset(); |
328 DCHECK(!gl_helper_) << "Destroying the GLHelper should not cause a new " | 328 DCHECK(!gl_helper_) << "Destroying the GLHelper should not cause a new " |
329 "GLHelper to be created."; | 329 "GLHelper to be created."; |
330 } | 330 } |
331 } | 331 } |
332 | 332 |
333 bool GpuProcessTransportFactory::DoesCreateTestContexts() { return false; } | 333 bool GpuProcessTransportFactory::DoesCreateTestContexts() { return false; } |
334 | 334 |
| 335 uint32 GpuProcessTransportFactory::GetImageTextureTarget() { |
| 336 return BrowserGpuChannelHostFactory::GetImageTextureTarget(); |
| 337 } |
| 338 |
335 cc::SharedBitmapManager* GpuProcessTransportFactory::GetSharedBitmapManager() { | 339 cc::SharedBitmapManager* GpuProcessTransportFactory::GetSharedBitmapManager() { |
336 return HostSharedBitmapManager::current(); | 340 return HostSharedBitmapManager::current(); |
337 } | 341 } |
338 | 342 |
339 gpu::GpuMemoryBufferManager* | 343 gpu::GpuMemoryBufferManager* |
340 GpuProcessTransportFactory::GetGpuMemoryBufferManager() { | 344 GpuProcessTransportFactory::GetGpuMemoryBufferManager() { |
341 return BrowserGpuMemoryBufferManager::current(); | 345 return BrowserGpuMemoryBufferManager::current(); |
342 } | 346 } |
343 | 347 |
344 ui::ContextFactory* GpuProcessTransportFactory::GetContextFactory() { | 348 ui::ContextFactory* GpuProcessTransportFactory::GetContextFactory() { |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 FOR_EACH_OBSERVER(ImageTransportFactoryObserver, | 526 FOR_EACH_OBSERVER(ImageTransportFactoryObserver, |
523 observer_list_, | 527 observer_list_, |
524 OnLostResources()); | 528 OnLostResources()); |
525 | 529 |
526 // Kill things that use the shared context before killing the shared context. | 530 // Kill things that use the shared context before killing the shared context. |
527 lost_gl_helper.reset(); | 531 lost_gl_helper.reset(); |
528 lost_shared_main_thread_contexts = NULL; | 532 lost_shared_main_thread_contexts = NULL; |
529 } | 533 } |
530 | 534 |
531 } // namespace content | 535 } // namespace content |
OLD | NEW |