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

Unified Diff: content/common/gpu/gpu_memory_manager_unittest.cc

Issue 12017032: Add calls to EnsureGPUMemoryAvailable into GLES2DecoderImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | « content/common/gpu/gpu_memory_manager.cc ('k') | content/common/gpu/gpu_memory_tracking.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_memory_manager_unittest.cc
diff --git a/content/common/gpu/gpu_memory_manager_unittest.cc b/content/common/gpu/gpu_memory_manager_unittest.cc
index 6a8686cab7efc493c49b8a17ee05d21e4c9a8996..5d54d544a83ca6979404e239f570bde06d292bb5 100644
--- a/content/common/gpu/gpu_memory_manager_unittest.cc
+++ b/content/common/gpu/gpu_memory_manager_unittest.cc
@@ -23,10 +23,13 @@ struct hash<content::GpuMemoryManagerClient*> {
class FakeMemoryTracker : public gpu::gles2::MemoryTracker {
public:
- void TrackMemoryAllocatedChange(
- size_t old_size,
- size_t new_size,
- gpu::gles2::MemoryTracker::Pool pool) {
+ virtual void TrackMemoryAllocatedChange(
+ size_t /* old_size */,
+ size_t /* new_size */,
+ gpu::gles2::MemoryTracker::Pool /* pool */) {
+ }
+ virtual bool EnsureGPUMemoryAvailable(size_t /* size_needed */) {
+ return true;
}
private:
~FakeMemoryTracker() {
« no previous file with comments | « content/common/gpu/gpu_memory_manager.cc ('k') | content/common/gpu/gpu_memory_tracking.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698