| OLD | NEW | 
|    1  |    1  | 
|    2 /* |    2 /* | 
|    3  * Copyright 2011 Google Inc. |    3  * Copyright 2011 Google Inc. | 
|    4  * |    4  * | 
|    5  * Use of this source code is governed by a BSD-style license that can be |    5  * Use of this source code is governed by a BSD-style license that can be | 
|    6  * found in the LICENSE file. |    6  * found in the LICENSE file. | 
|    7  */ |    7  */ | 
|    8 #ifndef skiagm_DEFINED |    8 #ifndef skiagm_DEFINED | 
|    9 #define skiagm_DEFINED |    9 #define skiagm_DEFINED | 
|   10  |   10  | 
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   87         void drawSizeBounds(SkCanvas*, SkColor); |   87         void drawSizeBounds(SkCanvas*, SkColor); | 
|   88  |   88  | 
|   89         static void SetResourcePath(const char* resourcePath) { |   89         static void SetResourcePath(const char* resourcePath) { | 
|   90             gResourcePath = resourcePath; |   90             gResourcePath = resourcePath; | 
|   91         } |   91         } | 
|   92  |   92  | 
|   93         static SkString& GetResourcePath() { |   93         static SkString& GetResourcePath() { | 
|   94             return gResourcePath; |   94             return gResourcePath; | 
|   95         } |   95         } | 
|   96  |   96  | 
|   97         bool isIgnoringFailures() const { return fIgnoreFailures; } |  | 
|   98         void setIgnoreFailures(bool val) { |  | 
|   99             fIgnoreFailures = val; |  | 
|  100         } |  | 
|  101  |  | 
|  102         bool isCanvasDeferred() const { return fCanvasIsDeferred; } |   97         bool isCanvasDeferred() const { return fCanvasIsDeferred; } | 
|  103         void setCanvasIsDeferred(bool isDeferred) { |   98         void setCanvasIsDeferred(bool isDeferred) { | 
|  104             fCanvasIsDeferred = isDeferred; |   99             fCanvasIsDeferred = isDeferred; | 
|  105         } |  100         } | 
|  106  |  101  | 
|  107 #if SK_SUPPORT_GPU |  102 #if SK_SUPPORT_GPU | 
|  108         static GrContext* GetGr(/*very nearly const*/ SkCanvas*); |  103         static GrContext* GetGr(/*very nearly const*/ SkCanvas*); | 
|  109 #endif |  104 #endif | 
|  110  |  105  | 
|  111     const SkMatrix& getStarterMatrix() { return fStarterMatrix; } |  106     const SkMatrix& getStarterMatrix() { return fStarterMatrix; } | 
| (...skipping 10 matching lines...) Expand all  Loading... | 
|  122         virtual SkISize onISize() = 0; |  117         virtual SkISize onISize() = 0; | 
|  123         virtual SkString onShortName() = 0; |  118         virtual SkString onShortName() = 0; | 
|  124         virtual uint32_t onGetFlags() const { return 0; } |  119         virtual uint32_t onGetFlags() const { return 0; } | 
|  125         virtual SkMatrix onGetInitialTransform() const { return SkMatrix::I(); } |  120         virtual SkMatrix onGetInitialTransform() const { return SkMatrix::I(); } | 
|  126  |  121  | 
|  127     private: |  122     private: | 
|  128         SkString fShortName; |  123         SkString fShortName; | 
|  129         SkColor  fBGColor; |  124         SkColor  fBGColor; | 
|  130         bool     fCanvasIsDeferred; // work-around problem in srcmode.cpp |  125         bool     fCanvasIsDeferred; // work-around problem in srcmode.cpp | 
|  131         bool     fHaveCalledOnceBeforeDraw; |  126         bool     fHaveCalledOnceBeforeDraw; | 
|  132         bool     fIgnoreFailures; // whether to file any failures as failure-ign
     ored |  | 
|  133         SkMatrix fStarterMatrix; |  127         SkMatrix fStarterMatrix; | 
|  134     }; |  128     }; | 
|  135  |  129  | 
|  136     typedef SkTRegistry<GM*(*)(void*)> GMRegistry; |  130     typedef SkTRegistry<GM*(*)(void*)> GMRegistry; | 
|  137 } |  131 } | 
|  138  |  132  | 
|  139 #endif |  133 #endif | 
| OLD | NEW |