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

Unified Diff: gpu/command_buffer/tests/gl_manager.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/command_buffer/service/query_manager.cc ('k') | gpu/ipc/service/gpu_channel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/tests/gl_manager.cc
diff --git a/gpu/command_buffer/tests/gl_manager.cc b/gpu/command_buffer/tests/gl_manager.cc
index 8369653e4f8094dcf76108d5d91f4d16ce0248de..825d7307d9daf3bfcbcdcd5b61019727597cb0e3 100644
--- a/gpu/command_buffer/tests/gl_manager.cc
+++ b/gpu/command_buffer/tests/gl_manager.cc
@@ -678,14 +678,14 @@ int32_t GLManager::CreateFence(ClientFence fence) {
GpuFenceImpl* gpu_fence = GpuFenceImpl::FromClientFence(fence);
gfx::GpuFenceHandle handle = gpu_fence->GetHandle();
- std::unique_ptr<gl::GLFenceSharedEvent> gl_fence(new gl::GLFenceSharedEvent(
+ scoped_refptr<gl::GLFenceSharedEvent> gl_fence(new gl::GLFenceSharedEvent(
gfx::SharedEvent::DuplicateHandle(handle.shared_event_handle)));
static int32_t next_id = 1;
int32_t new_id = next_id++;
gpu::gles2::FenceManager* fence_manager = decoder_->GetFenceManager();
DCHECK(fence_manager);
- fence_manager->AddFence(std::move(gl_fence), new_id);
+ fence_manager->AddFence(gl_fence.get(), new_id);
return new_id;
}
« no previous file with comments | « gpu/command_buffer/service/query_manager.cc ('k') | gpu/ipc/service/gpu_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698