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

Unified Diff: ppapi/examples/gamepad/gamepad.cc

Issue 1182283002: Plugin Power Saver: Fix Dr. Memory leaks in browser tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 | ppapi/tests/power_saver_test_plugin.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/examples/gamepad/gamepad.cc
diff --git a/ppapi/examples/gamepad/gamepad.cc b/ppapi/examples/gamepad/gamepad.cc
index d2b08844ebed669de53dd6a9e5cdb794215c2ac0..bfac65a498d1438c334595ce62af80808d720ba5 100644
--- a/ppapi/examples/gamepad/gamepad.cc
+++ b/ppapi/examples/gamepad/gamepad.cc
@@ -69,6 +69,8 @@ class MyInstance : public pp::Instance {
}
void OnFlush(int32_t) {
+ // This plugin continuously paints because it continously samples the
+ // gamepad and paints its updated state.
Paint();
}
@@ -145,4 +147,3 @@ Module* CreateModule() {
}
} // namespace pp
-
« no previous file with comments | « no previous file | ppapi/tests/power_saver_test_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698