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

Unified Diff: third_party/WebKit/public/platform/Platform.h

Issue 1787973002: Replace blink::WebDiscardableMemory with base::DiscardableMemory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use StringPiece::as_string Created 4 years, 9 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/public/platform/Platform.h
diff --git a/third_party/WebKit/public/platform/Platform.h b/third_party/WebKit/public/platform/Platform.h
index 623c11f844c907cd1e4a3dcd080d5686e3ac2b2e..0ecf774dba8e9e6d869e836dbefa46142871f22a 100644
--- a/third_party/WebKit/public/platform/Platform.h
+++ b/third_party/WebKit/public/platform/Platform.h
@@ -70,7 +70,6 @@ class WebCompositorSupport;
class WebCookieJar;
class WebCrypto;
class WebDatabaseObserver;
-class WebDiscardableMemory;
class WebPlatformEventListener;
class WebFallbackThemeEngine;
class WebFileSystem;
@@ -275,13 +274,6 @@ public:
// Return the number of of processors of the current machine.
virtual size_t numberOfProcessors() { return 0; }
- // Allocates discardable memory. May return nullptr, even if the platform supports
- // discardable memory. If nonzero, however, then the WebDiscardableMmeory is
- // returned in an locked state. You may use its underlying data() member
- // directly, taking care to unlock it when you are ready to let it become
- // discardable.
- virtual WebDiscardableMemory* allocateAndLockDiscardableMemory(size_t bytes) { return nullptr; }
-
static const size_t noDecodedImageByteLimit = static_cast<size_t>(-1);
// Returns the maximum amount of memory a decoded image should be allowed.
« no previous file with comments | « third_party/WebKit/public/blink_headers.gypi ('k') | third_party/WebKit/public/platform/WebDiscardableMemory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698