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

Unified Diff: runtime/embedders/openglui/common/sound_handler.cc

Issue 13042015: Various OpenGLUI changes: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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: runtime/embedders/openglui/common/sound_handler.cc
===================================================================
--- runtime/embedders/openglui/common/sound_handler.cc (revision 20570)
+++ runtime/embedders/openglui/common/sound_handler.cc (working copy)
@@ -12,6 +12,7 @@
SoundHandler::SoundHandler()
: samples_() {
+ instance_ = this;
}
Sample* SoundHandler::GetSample(const char* path) {
@@ -20,6 +21,7 @@
++sp) {
Sample* sample = (*sp);
if (strcmp(sample->path(), path) == 0) {
+ LOGI("Returning cached sample %s", path);
return sample;
}
}
@@ -30,6 +32,7 @@
return NULL;
}
samples_.push_back(sample);
+ LOGI("Adding sample %s to cache", path);
return sample;
}

Powered by Google App Engine
This is Rietveld 408576698