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

Side by Side Diff: gpu/command_buffer/service/in_process_command_buffer.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "gpu/command_buffer/service/in_process_command_buffer.h" 5 #include "gpu/command_buffer/service/in_process_command_buffer.h"
6 6
7 #include <queue> 7 #include <queue>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 InsertSyncPoint()); 627 InsertSyncPoint());
628 } 628 }
629 629
630 return new_id; 630 return new_id;
631 } 631 }
632 632
633 void InProcessCommandBuffer::CreateImageOnGpuThread( 633 void InProcessCommandBuffer::CreateImageOnGpuThread(
634 int32 id, 634 int32 id,
635 const gfx::GpuMemoryBufferHandle& handle, 635 const gfx::GpuMemoryBufferHandle& handle,
636 const gfx::Size& size, 636 const gfx::Size& size,
637 gfx::GpuMemoryBuffer::Format format, 637 gfx::BufferFormat format,
638 uint32 internalformat) { 638 uint32 internalformat) {
639 if (!decoder_) 639 if (!decoder_)
640 return; 640 return;
641 641
642 gpu::gles2::ImageManager* image_manager = decoder_->GetImageManager(); 642 gpu::gles2::ImageManager* image_manager = decoder_->GetImageManager();
643 DCHECK(image_manager); 643 DCHECK(image_manager);
644 if (image_manager->LookupImage(id)) { 644 if (image_manager->LookupImage(id)) {
645 LOG(ERROR) << "Image already exists with same ID."; 645 LOG(ERROR) << "Image already exists with same ID.";
646 return; 646 return;
647 } 647 }
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
923 if (!shader_translator_cache_.get()) 923 if (!shader_translator_cache_.get())
924 shader_translator_cache_ = new gpu::gles2::ShaderTranslatorCache; 924 shader_translator_cache_ = new gpu::gles2::ShaderTranslatorCache;
925 return shader_translator_cache_; 925 return shader_translator_cache_;
926 } 926 }
927 927
928 SyncPointManager* GpuInProcessThread::sync_point_manager() { 928 SyncPointManager* GpuInProcessThread::sync_point_manager() {
929 return sync_point_manager_; 929 return sync_point_manager_;
930 } 930 }
931 931
932 } // namespace gpu 932 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/in_process_command_buffer.h ('k') | gpu/command_buffer/tests/gl_gpu_memory_buffer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698