| 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 "gpu/ipc/client/gpu_channel_host.h" | 5 #include "gpu/ipc/client/gpu_channel_host.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/atomic_sequence_num.h" | 10 #include "base/atomic_sequence_num.h" |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 } | 253 } |
| 254 scoped_fds.emplace_back(std::move(scoped_fd)); | 254 scoped_fds.emplace_back(std::move(scoped_fd)); |
| 255 } | 255 } |
| 256 gfx::GpuMemoryBufferHandle handle; | 256 gfx::GpuMemoryBufferHandle handle; |
| 257 handle.type = gfx::OZONE_NATIVE_PIXMAP; | 257 handle.type = gfx::OZONE_NATIVE_PIXMAP; |
| 258 handle.id = source_handle.id; | 258 handle.id = source_handle.id; |
| 259 for (auto& scoped_fd : scoped_fds) { | 259 for (auto& scoped_fd : scoped_fds) { |
| 260 handle.native_pixmap_handle.fds.emplace_back(scoped_fd.release(), | 260 handle.native_pixmap_handle.fds.emplace_back(scoped_fd.release(), |
| 261 true /* auto_close */); | 261 true /* auto_close */); |
| 262 } | 262 } |
| 263 handle.native_pixmap_handle.planes = | 263 handle.native_pixmap_handle.strides_and_offsets = |
| 264 source_handle.native_pixmap_handle.planes; | 264 source_handle.native_pixmap_handle.strides_and_offsets; |
| 265 *requires_sync_point = false; | 265 *requires_sync_point = false; |
| 266 return handle; | 266 return handle; |
| 267 } | 267 } |
| 268 #endif | 268 #endif |
| 269 case gfx::IO_SURFACE_BUFFER: | 269 case gfx::IO_SURFACE_BUFFER: |
| 270 case gfx::SURFACE_TEXTURE_BUFFER: | 270 case gfx::SURFACE_TEXTURE_BUFFER: |
| 271 *requires_sync_point = true; | 271 *requires_sync_point = true; |
| 272 return source_handle; | 272 return source_handle; |
| 273 default: | 273 default: |
| 274 NOTREACHED(); | 274 NOTREACHED(); |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 | 420 |
| 421 listeners_.clear(); | 421 listeners_.clear(); |
| 422 } | 422 } |
| 423 | 423 |
| 424 bool GpuChannelHost::MessageFilter::IsLost() const { | 424 bool GpuChannelHost::MessageFilter::IsLost() const { |
| 425 AutoLock lock(lock_); | 425 AutoLock lock(lock_); |
| 426 return lost_; | 426 return lost_; |
| 427 } | 427 } |
| 428 | 428 |
| 429 } // namespace gpu | 429 } // namespace gpu |
| OLD | NEW |