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

Unified Diff: third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h

Issue 2379653006: Replaced cc::SurfaceId::nonce_ with base::UnguessableToken (Closed)
Patch Set: Changed SurfaceManager::kRootSurfaceId to a private field to avoid static initialization Created 4 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
Index: third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
diff --git a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
index ccedfa6f9b00b0425652673aad9e6c60a3b1df73..656b4dd24c7d6d2a11270afbd14339a5fdc15ee2 100644
--- a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
+++ b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
@@ -70,16 +70,19 @@ class CORE_EXPORT OffscreenCanvas final
void setSurfaceId(uint32_t clientId,
uint32_t sinkId,
uint32_t localId,
- uint64_t nonce) {
+ uint64_t nonceHigh,
+ uint64_t nonceLow) {
m_clientId = clientId;
m_sinkId = sinkId;
m_localId = localId;
- m_nonce = nonce;
+ m_nonceHigh = nonceHigh;
+ m_nonceLow = nonceLow;
}
uint32_t clientId() const { return m_clientId; }
uint32_t sinkId() const { return m_sinkId; }
uint32_t localId() const { return m_localId; }
- uint64_t nonce() const { return m_nonce; }
+ uint64_t nonceHigh() const { return m_nonceHigh; }
+ uint64_t nonceLow() const { return m_nonceLow; }
// CanvasImageSource implementation
PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*,
@@ -127,7 +130,8 @@ class CORE_EXPORT OffscreenCanvas final
uint32_t m_clientId = 0;
uint32_t m_sinkId = 0;
uint32_t m_localId = 0;
- uint64_t m_nonce = 0;
+ uint64_t m_nonceHigh = 0;
+ uint64_t m_nonceLow = 0;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698