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

Unified Diff: tests/ResourceCacheTest.cpp

Issue 702413003: Make GrGpuResource::gpuMemorySize non-virtual w/ onGpuMemorySize virtual impl (Closed) Base URL: https://skia.googlesource.com/skia.git@priv
Patch Set: rebase Created 6 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
« no previous file with comments | « src/gpu/gl/GrGLVertexArray.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/ResourceCacheTest.cpp
diff --git a/tests/ResourceCacheTest.cpp b/tests/ResourceCacheTest.cpp
index fb1711372c7840b7bb29af678d1ada1c625f7a8f..7cebddb0ccd607d8c83ec9bf47db647b495e237c 100644
--- a/tests/ResourceCacheTest.cpp
+++ b/tests/ResourceCacheTest.cpp
@@ -99,8 +99,6 @@ public:
this->didChangeGpuMemorySize();
}
- size_t gpuMemorySize() const SK_OVERRIDE { return fSize; }
-
static int NumAlive() { return fNumAlive; }
void setDeleteWhenDestroyed(GrResourceCache* cache, TestResource* resource) {
@@ -109,6 +107,8 @@ public:
}
private:
+ size_t onGpuMemorySize() const SK_OVERRIDE { return fSize; }
+
GrResourceCache* fCache;
TestResource* fToDelete;
size_t fSize;
« no previous file with comments | « src/gpu/gl/GrGLVertexArray.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698