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

Unified Diff: cc/resources/returned_resource.h

Issue 1427543002: Modified old wait sync point functions to also accept new sync tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mock gpu video accelerator factory 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: cc/resources/returned_resource.h
diff --git a/cc/resources/returned_resource.h b/cc/resources/returned_resource.h
index 94a574e98138d25a23450068723fa50fb85c208c..7659c3bc551dbc7e7899f72eebd6e1a91995de8d 100644
--- a/cc/resources/returned_resource.h
+++ b/cc/resources/returned_resource.h
@@ -10,6 +10,7 @@
#include "base/basictypes.h"
#include "cc/base/cc_export.h"
#include "cc/base/resource_id.h"
+#include "gpu/command_buffer/common/sync_token.h"
namespace cc {
@@ -27,6 +28,7 @@ struct CC_EXPORT ReturnedResource {
// command with this |sync_point| as a parameter into its own command buffer.
// This ensures that uses of the resource submitted by the parent compositor
// are executed before commands submitted by the child.
+ gpu::SyncToken sync_token;
unsigned sync_point;
// |count| is a reference count for this resource. A resource may be used

Powered by Google App Engine
This is Rietveld 408576698