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

Side by Side Diff: content/common/gpu/gpu_command_buffer_stub.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/bind_helpers.h" 6 #include "base/bind_helpers.h"
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/hash.h" 8 #include "base/hash.h"
9 #include "base/json/json_writer.h" 9 #include "base/json/json_writer.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after
973 this, surface_id_ != 0, true)); 973 this, surface_id_ != 0, true));
974 } 974 }
975 } else { 975 } else {
976 memory_manager_client_state_.reset(); 976 memory_manager_client_state_.reset();
977 } 977 }
978 } 978 }
979 979
980 void GpuCommandBufferStub::OnCreateImage(int32 id, 980 void GpuCommandBufferStub::OnCreateImage(int32 id,
981 gfx::GpuMemoryBufferHandle handle, 981 gfx::GpuMemoryBufferHandle handle,
982 gfx::Size size, 982 gfx::Size size,
983 gfx::GpuMemoryBuffer::Format format, 983 gfx::BufferFormat format,
984 uint32 internalformat) { 984 uint32 internalformat) {
985 TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnCreateImage"); 985 TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnCreateImage");
986 986
987 if (!decoder_) 987 if (!decoder_)
988 return; 988 return;
989 989
990 gpu::gles2::ImageManager* image_manager = decoder_->GetImageManager(); 990 gpu::gles2::ImageManager* image_manager = decoder_->GetImageManager();
991 DCHECK(image_manager); 991 DCHECK(image_manager);
992 if (image_manager->LookupImage(id)) { 992 if (image_manager->LookupImage(id)) {
993 LOG(ERROR) << "Image already exists with same ID."; 993 LOG(ERROR) << "Image already exists with same ID.";
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
1156 result)); 1156 result));
1157 } 1157 }
1158 1158
1159 void GpuCommandBufferStub::SendUpdateVSyncParameters(base::TimeTicks timebase, 1159 void GpuCommandBufferStub::SendUpdateVSyncParameters(base::TimeTicks timebase,
1160 base::TimeDelta interval) { 1160 base::TimeDelta interval) {
1161 Send(new GpuCommandBufferMsg_UpdateVSyncParameters(route_id_, timebase, 1161 Send(new GpuCommandBufferMsg_UpdateVSyncParameters(route_id_, timebase,
1162 interval)); 1162 interval));
1163 } 1163 }
1164 1164
1165 } // namespace content 1165 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.h ('k') | content/common/gpu/gpu_memory_buffer_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698