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

Unified Diff: gpu/command_buffer/service/mailbox_manager_sync.cc

Issue 1394543003: Added SyncToken command buffer trait to help with IPC messages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: gpu/command_buffer/service/mailbox_manager_sync.cc
diff --git a/gpu/command_buffer/service/mailbox_manager_sync.cc b/gpu/command_buffer/service/mailbox_manager_sync.cc
index 383cbb5c7d9593a752c79937ea848c779d3a6ab9..424dcce84440ab36df6cbc376d5f853a6ef15a58 100644
--- a/gpu/command_buffer/service/mailbox_manager_sync.cc
+++ b/gpu/command_buffer/service/mailbox_manager_sync.cc
@@ -9,7 +9,7 @@
#include "base/memory/linked_ptr.h"
#include "base/synchronization/lock.h"
-#include "gpu/command_buffer/common/gles2_cmd_format.h"
+#include "gpu/command_buffer/common/sync_token.h"
#include "gpu/command_buffer/service/texture_manager.h"
#include "ui/gl/gl_fence.h"
#include "ui/gl/gl_implementation.h"
@@ -41,7 +41,7 @@ void CreateFenceLocked(const SyncToken& sync_token) {
std::queue<SyncTokenToFenceMap::iterator>& sync_points = g_sync_points.Get();
SyncTokenToFenceMap& sync_point_to_fence = g_sync_point_to_fence.Get();
- if (sync_token.release_count) {
+ if (sync_token.GetReleaseCount()) {
while (!sync_points.empty() &&
sync_points.front()->second->HasCompleted()) {
sync_point_to_fence.erase(sync_points.front());

Powered by Google App Engine
This is Rietveld 408576698