| 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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  394         ImageTransportFactoryObserver, observer_list_, OnLostResources()); |  394         ImageTransportFactoryObserver, observer_list_, OnLostResources()); | 
|  395  |  395  | 
|  396     helper.reset(); |  396     helper.reset(); | 
|  397     DCHECK(!gl_helper_) << "Destroying the GLHelper should not cause a new " |  397     DCHECK(!gl_helper_) << "Destroying the GLHelper should not cause a new " | 
|  398                            "GLHelper to be created."; |  398                            "GLHelper to be created."; | 
|  399   } |  399   } | 
|  400 } |  400 } | 
|  401  |  401  | 
|  402 bool GpuProcessTransportFactory::DoesCreateTestContexts() { return false; } |  402 bool GpuProcessTransportFactory::DoesCreateTestContexts() { return false; } | 
|  403  |  403  | 
|  404 uint32 GpuProcessTransportFactory::GetImageTextureTarget() { |  404 uint32 GpuProcessTransportFactory::GetMapImageTextureTarget() { | 
|  405   return BrowserGpuChannelHostFactory::GetImageTextureTarget(); |  405   return BrowserGpuChannelHostFactory::GetImageTextureTarget( | 
 |  406       gfx::GpuMemoryBuffer::MAP); | 
 |  407 } | 
 |  408  | 
 |  409 uint32 GpuProcessTransportFactory::GetPersistentMapImageTextureTarget() { | 
 |  410   return BrowserGpuChannelHostFactory::GetImageTextureTarget( | 
 |  411       gfx::GpuMemoryBuffer::PERSISTENT_MAP); | 
|  406 } |  412 } | 
|  407  |  413  | 
|  408 cc::SharedBitmapManager* GpuProcessTransportFactory::GetSharedBitmapManager() { |  414 cc::SharedBitmapManager* GpuProcessTransportFactory::GetSharedBitmapManager() { | 
|  409   return HostSharedBitmapManager::current(); |  415   return HostSharedBitmapManager::current(); | 
|  410 } |  416 } | 
|  411  |  417  | 
|  412 gpu::GpuMemoryBufferManager* |  418 gpu::GpuMemoryBufferManager* | 
|  413 GpuProcessTransportFactory::GetGpuMemoryBufferManager() { |  419 GpuProcessTransportFactory::GetGpuMemoryBufferManager() { | 
|  414   return BrowserGpuMemoryBufferManager::current(); |  420   return BrowserGpuMemoryBufferManager::current(); | 
|  415 } |  421 } | 
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  603   FOR_EACH_OBSERVER(ImageTransportFactoryObserver, |  609   FOR_EACH_OBSERVER(ImageTransportFactoryObserver, | 
|  604                     observer_list_, |  610                     observer_list_, | 
|  605                     OnLostResources()); |  611                     OnLostResources()); | 
|  606  |  612  | 
|  607   // Kill things that use the shared context before killing the shared context. |  613   // Kill things that use the shared context before killing the shared context. | 
|  608   lost_gl_helper.reset(); |  614   lost_gl_helper.reset(); | 
|  609   lost_shared_main_thread_contexts  = NULL; |  615   lost_shared_main_thread_contexts  = NULL; | 
|  610 } |  616 } | 
|  611  |  617  | 
|  612 }  // namespace content |  618 }  // namespace content | 
| OLD | NEW |