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

Unified Diff: chrome/browser/image_decoder.h

Issue 1114003002: Replace the RepeatingTimer in ImageDecoder with a DelayTimer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 5 years, 8 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 | chrome/browser/image_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/image_decoder.h
diff --git a/chrome/browser/image_decoder.h b/chrome/browser/image_decoder.h
index ca7604350e97ea63b229a339666faa49bd1a6002..d3bd4e7cf638ab8285a448139f09ab37ff9eda21 100644
--- a/chrome/browser/image_decoder.h
+++ b/chrome/browser/image_decoder.h
@@ -141,11 +141,9 @@ class ImageDecoder : public content::UtilityProcessHostClient {
// The UtilityProcessHost requests are sent to.
base::WeakPtr<content::UtilityProcessHost> utility_process_host_;
- // Calls StopBatchMode() after |kBatchModeTimeoutSeconds| have elapsed.
- base::RepeatingTimer<ImageDecoder> batch_mode_timer_;
-
- // The time Start() was last called.
- base::TimeTicks last_request_;
+ // Calls StopBatchMode() after |kBatchModeTimeoutSeconds| have elapsed,
+ // unless a new decoding request resets the timer.
+ scoped_ptr<base::DelayTimer<ImageDecoder>> batch_mode_timer_;
DISALLOW_COPY_AND_ASSIGN(ImageDecoder);
};
« no previous file with comments | « no previous file | chrome/browser/image_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698