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

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: format Created 5 years, 1 month 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 | « cc/resources/resource_provider_unittest.cc ('k') | cc/resources/single_release_callback.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/returned_resource.h
diff --git a/cc/resources/returned_resource.h b/cc/resources/returned_resource.h
index 94a574e98138d25a23450068723fa50fb85c208c..92e57ad95d4989d41a859e6311390e8484068a32 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 {
@@ -17,17 +18,17 @@ namespace cc {
// parent compositor that corresponds to a TransferableResource that was
// first passed to the parent compositor.
struct CC_EXPORT ReturnedResource {
- ReturnedResource() : id(0), sync_point(0), count(0), lost(false) {}
+ ReturnedResource() : id(0), count(0), lost(false) {}
// |id| is an identifier generated by the child compositor that uniquely
// identifies a resource. This is the same ID space as TransferableResource.
ResourceId id;
- // A |sync_point| is an identifier for a point in the parent compositor's
+ // A |sync_token| is an identifier for a point in the parent compositor's
// command buffer. The child compositor then issues a WaitSyncPointCHROMIUM
- // command with this |sync_point| as a parameter into its own command buffer.
+ // command with this |sync_token| 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.
- unsigned sync_point;
+ gpu::SyncToken sync_token;
// |count| is a reference count for this resource. A resource may be used
// by mulitple compositor frames submitted to the parent compositor. |count|
« no previous file with comments | « cc/resources/resource_provider_unittest.cc ('k') | cc/resources/single_release_callback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698