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

Unified Diff: gpu/command_buffer/client/fenced_allocator.h

Issue 8369010: Add GLES2Implemention::FreeUnusedSharedMemory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 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
« no previous file with comments | « no previous file | gpu/command_buffer/client/fenced_allocator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/fenced_allocator.h
diff --git a/gpu/command_buffer/client/fenced_allocator.h b/gpu/command_buffer/client/fenced_allocator.h
index 70d85f64a8b0d87e1ab9d35bfc50f3843dc32d64..0115bfa44bdbe21815ed30732ec4ad13edd68fa2 100644
--- a/gpu/command_buffer/client/fenced_allocator.h
+++ b/gpu/command_buffer/client/fenced_allocator.h
@@ -78,6 +78,9 @@ class FencedAllocator {
// testing.
bool CheckConsistency();
+ // True if any memory is allocated.
+ bool InUse();
+
private:
// Status of a block of memory, for book-keeping.
enum State {
@@ -231,6 +234,11 @@ class FencedAllocatorWrapper {
return allocator_.CheckConsistency();
}
+ // True if any memory is allocated.
+ bool InUse() {
+ return allocator_.InUse();
+ }
+
FencedAllocator &allocator() { return allocator_; }
private:
« no previous file with comments | « no previous file | gpu/command_buffer/client/fenced_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698