|
Page Speed Optimization Libraries
1.13.35.1
|
Class for managing image conversion timeouts. More...
#include "image_util.h"
Public Member Functions | |
| ConversionTimeoutHandler (int64 time_allowed_ms, net_instaweb::Timer *timer, net_instaweb::MessageHandler *handler) | |
| void | Start (GoogleString *output) |
| void | Stop () |
| bool | was_timed_out () const |
| int64 | time_elapsed_ms () const |
Static Public Member Functions | |
| static bool | Continue (int percent, void *user_data) |
Class for managing image conversion timeouts.
|
static |
Returns true if (1) the timer has not expired, or (2) the timer has expired but "output_" is not empty which means that some data are being written to it. This method can be passed as progress hook to WebP writer. Input parameter "user_data" must point to a ConversionTimeoutHandler object.
1.8.6