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

Unified Diff: third_party/WebKit/Source/platform/SharedBuffer.h

Issue 2253853002: Remove SharedBuffer::unlock() and keep Resource's SharedBuffer always locked (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use hasClientsOrObservers() for live_size Created 4 years, 4 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: third_party/WebKit/Source/platform/SharedBuffer.h
diff --git a/third_party/WebKit/Source/platform/SharedBuffer.h b/third_party/WebKit/Source/platform/SharedBuffer.h
index a8d96c043df4899b9a3339bd1ca6851998a4a591..99671ebd6653b6e181ca2fb5302331526efb28ae 100644
--- a/third_party/WebKit/Source/platform/SharedBuffer.h
+++ b/third_party/WebKit/Source/platform/SharedBuffer.h
@@ -145,16 +145,6 @@ public:
// SkData without merging segmented buffers into a flat buffer.
sk_sp<SkData> getAsSkData() const;
- // See PurgeableVector::lock().
- bool lock();
-
- // WARNING: Calling unlock() on a SharedBuffer that wasn't created with the
- // purgeability option does an extra memcpy(). Please use
- // SharedBuffer::createPurgeable() if you intend to call unlock().
- void unlock();
-
- bool isLocked() const;
-
void onMemoryDump(const String& dumpPrefix, WebProcessMemoryDump*) const;
private:
« no previous file with comments | « third_party/WebKit/Source/platform/PurgeableVectorTest.cpp ('k') | third_party/WebKit/Source/platform/SharedBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698