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

Unified Diff: content/common/discardable_shared_memory_heap.h

Issue 1374213002: [tracing] Display the locked size of discardable memory segment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change to expect. Created 5 years, 3 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: content/common/discardable_shared_memory_heap.h
diff --git a/content/common/discardable_shared_memory_heap.h b/content/common/discardable_shared_memory_heap.h
index 100b03f169611388e16d601276913d119cca3f64..ce8787a6f7396a61ea29af9247f41aa41e325749 100644
--- a/content/common/discardable_shared_memory_heap.h
+++ b/content/common/discardable_shared_memory_heap.h
@@ -30,6 +30,7 @@ class CONTENT_EXPORT DiscardableSharedMemoryHeap {
base::DiscardableSharedMemory* shared_memory() { return shared_memory_; }
size_t start() const { return start_; }
size_t length() const { return length_; }
+ void set_is_locked(bool is_locked) { is_locked_ = is_locked; }
private:
friend class DiscardableSharedMemoryHeap;
@@ -41,6 +42,7 @@ class CONTENT_EXPORT DiscardableSharedMemoryHeap {
base::DiscardableSharedMemory* shared_memory_;
size_t start_;
size_t length_;
+ bool is_locked_;
DISALLOW_COPY_AND_ASSIGN(Span);
};
« no previous file with comments | « content/child/child_discardable_shared_memory_manager.cc ('k') | content/common/discardable_shared_memory_heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698