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

Unified Diff: gpu/command_buffer/service/fence_manager.h

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 | « no previous file | gpu/command_buffer/service/fence_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/fence_manager.h
diff --git a/gpu/command_buffer/service/fence_manager.h b/gpu/command_buffer/service/fence_manager.h
index 13c711b942bae63d58d47270ea720e9ab09e5f5c..1fe522954c487d8c1f686158c041e5c74659c65c 100644
--- a/gpu/command_buffer/service/fence_manager.h
+++ b/gpu/command_buffer/service/fence_manager.h
@@ -26,12 +26,12 @@ class GPU_EXPORT FenceManager {
~FenceManager();
void Destroy(bool have_context);
- void AddFence(std::unique_ptr<gl::GLFence> fence, int32_t service_id);
+ void AddFence(gl::GLFence* fence, int32_t service_id);
void RemoveFence(int32_t service_id);
gl::GLFence* LookupFence(int32_t service_id);
private:
- typedef base::hash_map<int32_t, std::unique_ptr<gl::GLFence>> GLFenceMap;
+ typedef base::hash_map<int32_t, scoped_refptr<gl::GLFence>> GLFenceMap;
GLFenceMap fences_;
DISALLOW_COPY_AND_ASSIGN(FenceManager);
« no previous file with comments | « no previous file | gpu/command_buffer/service/fence_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698