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

Side by Side Diff: content/common/gpu/client/gpu_channel_host.cc

Issue 255713008: Change glimage to accept a type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: First draft Created 6 years, 7 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 | Annotate | Revision Log
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 "content/common/gpu/client/gpu_channel_host.h" 5 #include "content/common/gpu/client/gpu_channel_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 return handle; 284 return handle;
285 } 285 }
286 #if defined(OS_MACOSX) 286 #if defined(OS_MACOSX)
287 case gfx::IO_SURFACE_BUFFER: 287 case gfx::IO_SURFACE_BUFFER:
288 return source_handle; 288 return source_handle;
289 #endif 289 #endif
290 #if defined(OS_ANDROID) 290 #if defined(OS_ANDROID)
291 case gfx::SURFACE_TEXTURE_BUFFER: 291 case gfx::SURFACE_TEXTURE_BUFFER:
292 return source_handle; 292 return source_handle;
293 #endif 293 #endif
294 #if defined(USE_OZONE)
295 case gfx::OZONE_NATIVE_BUFFER:
296 return source_handle;
297 #endif
294 default: 298 default:
295 NOTREACHED(); 299 NOTREACHED();
296 return gfx::GpuMemoryBufferHandle(); 300 return gfx::GpuMemoryBufferHandle();
297 } 301 }
298 } 302 }
299 303
300 int32 GpuChannelHost::ReserveGpuMemoryBufferId() { 304 int32 GpuChannelHost::ReserveGpuMemoryBufferId() {
301 return next_gpu_memory_buffer_id_.GetNext(); 305 return next_gpu_memory_buffer_id_.GetNext();
302 } 306 }
303 307
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 381
378 listeners_.clear(); 382 listeners_.clear();
379 } 383 }
380 384
381 bool GpuChannelHost::MessageFilter::IsLost() const { 385 bool GpuChannelHost::MessageFilter::IsLost() const {
382 AutoLock lock(lock_); 386 AutoLock lock(lock_);
383 return lost_; 387 return lost_;
384 } 388 }
385 389
386 } // namespace content 390 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698