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

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

Issue 1269503007: Unify graphics buffer format & usage enums for GpuMemoryBuffer & SurfaceFactoryOzone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add header to BUILD.gn Created 5 years, 4 months 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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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