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

Unified Diff: gpu/ipc/service/gpu_command_buffer_stub.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.cc ('k') | ui/gl/gl_fence.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/gpu_command_buffer_stub.cc
diff --git a/gpu/ipc/service/gpu_command_buffer_stub.cc b/gpu/ipc/service/gpu_command_buffer_stub.cc
index eb9205377c131f05c0ab87ec47941105b455c92c..8fc0a375906aa1a419a13b7a3338b0ba9100b2c0 100644
--- a/gpu/ipc/service/gpu_command_buffer_stub.cc
+++ b/gpu/ipc/service/gpu_command_buffer_stub.cc
@@ -1055,14 +1055,13 @@ void GpuCommandBufferStub::OnCreateFence(
return;
}
- std::unique_ptr<gl::GLFence> fence =
- channel()->CreateFenceForGpuFence(handle);
+ scoped_refptr<gl::GLFence> fence = channel()->CreateFenceForGpuFence(handle);
if (!fence) {
DLOG(ERROR) << "Failed to create GLFence from GpuFence handle.";
return;
}
- fence_manager->AddFence(std::move(fence), id);
+ fence_manager->AddFence(fence.get(), id);
}
void GpuCommandBufferStub::OnDestroyFence(int32_t id) {
« no previous file with comments | « gpu/ipc/service/gpu_channel.cc ('k') | ui/gl/gl_fence.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698