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

Unified Diff: gpu/ipc/service/gpu_channel.cc

Issue 2447533002: ui: Add ref-counting to GLFence class.
Patch Set: rebase Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/ipc/service/gpu_channel.h ('k') | gpu/ipc/service/gpu_command_buffer_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/gpu_channel.cc
diff --git a/gpu/ipc/service/gpu_channel.cc b/gpu/ipc/service/gpu_channel.cc
index 60838010ba0fb741c63571120506c71d6a7e5e26..9f3df9f3c88c7e73697fa64831a42bbab9a1d24c 100644
--- a/gpu/ipc/service/gpu_channel.cc
+++ b/gpu/ipc/service/gpu_channel.cc
@@ -1074,15 +1074,16 @@ scoped_refptr<gl::GLImage> GpuChannel::CreateImageForGpuMemoryBuffer(
}
}
-std::unique_ptr<gl::GLFence> GpuChannel::CreateFenceForGpuFence(
+scoped_refptr<gl::GLFence> GpuChannel::CreateFenceForGpuFence(
const gfx::GpuFenceHandle& handle) {
#if defined(OS_LINUX)
base::ScopedFD libsync_fd(handle.fd.fd);
if (libsync_fd.is_valid())
- return base::MakeUnique<gl::GLFenceLibsync>(std::move(libsync_fd));
+ return make_scoped_refptr(new gl::GLFenceLibsync(std::move(libsync_fd)));
#endif
- return base::MakeUnique<gl::GLFenceSharedEvent>(handle.shared_event_handle);
+ return make_scoped_refptr(
+ new gl::GLFenceSharedEvent(handle.shared_event_handle));
}
} // namespace gpu
« no previous file with comments | « gpu/ipc/service/gpu_channel.h ('k') | gpu/ipc/service/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698