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

Side by Side Diff: gpu/ipc/client/gpu_channel_host.cc

Issue 2110213002: Revert of Add format modifier IDs for EGL_EXT_image_dma_buf_import extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 "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
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
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
OLDNEW
« no previous file with comments | « components/exo/wayland/server.cc ('k') | gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698