 Chromium Code Reviews
 Chromium Code Reviews Issue 72603005:
  Guard against most unintentionally ephemeral SkAutoFoo instantiations.  (Closed) 
  Base URL: https://skia.googlecode.com/svn/trunk
    
  
    Issue 72603005:
  Guard against most unintentionally ephemeral SkAutoFoo instantiations.  (Closed) 
  Base URL: https://skia.googlecode.com/svn/trunk| Index: include/core/SkTime.h | 
| diff --git a/include/core/SkTime.h b/include/core/SkTime.h | 
| index 7f3c27053eab40c7dc9c7f945021c97c6d58ca71..51616d41c741f724ec365243a5aeab6d0ad26faa 100644 | 
| --- a/include/core/SkTime.h | 
| +++ b/include/core/SkTime.h | 
| @@ -60,5 +60,6 @@ private: | 
| SkMSec fNow; | 
| SkMSec fMinToDump; | 
| }; | 
| +#define SkAutoTime(...) SK_REQUIRE_LOCAL_VAR(SkAutoTime) | 
| #endif |