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

Unified Diff: cc/layers/texture_layer.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/layers/texture_layer.h
diff --git a/cc/layers/texture_layer.h b/cc/layers/texture_layer.h
index 0c0b2ec237d948b2be265aa66298a70f4fe5884a..b9bce50121af36b1752f99907176818a12b0f2ec 100644
--- a/cc/layers/texture_layer.h
+++ b/cc/layers/texture_layer.h
@@ -14,6 +14,10 @@
#include "cc/layers/layer.h"
#include "cc/resources/texture_mailbox.h"
+namespace gpu {
+struct SyncToken;
+}
+
namespace cc {
class BlockingTaskRunner;
class SingleReleaseCallback;
@@ -38,7 +42,9 @@ class CC_EXPORT TextureLayer : public Layer {
};
const TextureMailbox& mailbox() const { return mailbox_; }
- void Return(uint32 sync_point, bool is_lost);
+ void Return(uint32 sync_point,
+ const gpu::SyncToken& sync_token,
+ bool is_lost);
// Gets a ReleaseCallback that can be called from another thread. Note: the
// caller must ensure the callback is called.
@@ -64,6 +70,7 @@ class CC_EXPORT TextureLayer : public Layer {
void InternalRelease();
void ReturnAndReleaseOnImplThread(
uint32 sync_point,
+ const gpu::SyncToken& sync_token,
bool is_lost,
BlockingTaskRunner* main_thread_task_runner);
@@ -79,6 +86,7 @@ class CC_EXPORT TextureLayer : public Layer {
// ReturnAndReleaseOnImplThread() defines their values.
base::Lock arguments_lock_;
uint32 sync_point_;
+ gpu::SyncToken sync_token_;
bool is_lost_;
base::ThreadChecker main_thread_checker_;
DISALLOW_COPY_AND_ASSIGN(TextureMailboxHolder);

Powered by Google App Engine
This is Rietveld 408576698