| OLD | NEW |
| 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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 return source_handle; | 294 return source_handle; |
| 295 #endif | 295 #endif |
| 296 #if defined(OS_MACOSX) | 296 #if defined(OS_MACOSX) |
| 297 case gfx::IO_SURFACE_BUFFER: | 297 case gfx::IO_SURFACE_BUFFER: |
| 298 return source_handle; | 298 return source_handle; |
| 299 #endif | 299 #endif |
| 300 #if defined(OS_ANDROID) | 300 #if defined(OS_ANDROID) |
| 301 case gfx::SURFACE_TEXTURE_BUFFER: | 301 case gfx::SURFACE_TEXTURE_BUFFER: |
| 302 return source_handle; | 302 return source_handle; |
| 303 #endif | 303 #endif |
| 304 #if defined(USE_X11) | |
| 305 case gfx::X11_PIXMAP_BUFFER: | |
| 306 return source_handle; | |
| 307 #endif | |
| 308 default: | 304 default: |
| 309 NOTREACHED(); | 305 NOTREACHED(); |
| 310 return gfx::GpuMemoryBufferHandle(); | 306 return gfx::GpuMemoryBufferHandle(); |
| 311 } | 307 } |
| 312 } | 308 } |
| 313 | 309 |
| 314 int32 GpuChannelHost::ReserveImageId() { | 310 int32 GpuChannelHost::ReserveImageId() { |
| 315 return next_image_id_.GetNext(); | 311 return next_image_id_.GetNext(); |
| 316 } | 312 } |
| 317 | 313 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 | 387 |
| 392 listeners_.clear(); | 388 listeners_.clear(); |
| 393 } | 389 } |
| 394 | 390 |
| 395 bool GpuChannelHost::MessageFilter::IsLost() const { | 391 bool GpuChannelHost::MessageFilter::IsLost() const { |
| 396 AutoLock lock(lock_); | 392 AutoLock lock(lock_); |
| 397 return lost_; | 393 return lost_; |
| 398 } | 394 } |
| 399 | 395 |
| 400 } // namespace content | 396 } // namespace content |
| OLD | NEW |