| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  * Copyright 2011 Google Inc. |    2  * Copyright 2011 Google Inc. | 
|    3  * |    3  * | 
|    4  * Use of this source code is governed by a BSD-style license that can be |    4  * Use of this source code is governed by a BSD-style license that can be | 
|    5  * found in the LICENSE file. |    5  * found in the LICENSE file. | 
|    6  */ |    6  */ | 
|    7  |    7  | 
|    8 #include "gm.h" |    8 #include "gm.h" | 
|    9 #include "SkBlurMask.h" |    9 #include "SkBlurMask.h" | 
|   10 #include "SkBlurMaskFilter.h" |   10 #include "SkBlurMaskFilter.h" | 
|   11  |   11  | 
|   12 class BlursGM : public skiagm::GM { |   12 class BlursGM : public skiagm::GM { | 
|   13 public: |   13 public: | 
|   14     BlursGM() { |   14     BlursGM() { | 
|   15         this->setBGColor(0xFFDDDDDD); |   15         this->setBGColor(sk_tool_utils::color_to_565(0xFFDDDDDD)); | 
|   16     } |   16     } | 
|   17  |   17  | 
|   18 protected: |   18 protected: | 
|   19  |   19  | 
|   20     SkString onShortName() override { |   20     SkString onShortName() override { | 
|   21         return SkString("blurs"); |   21         return SkString("blurs"); | 
|   22     } |   22     } | 
|   23  |   23  | 
|   24     SkISize onISize() override { |   24     SkISize onISize() override { | 
|   25         return SkISize::Make(700, 500); |   25         return SkISize::Make(700, 500); | 
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  157         canvas->translate(dx, 0); |  157         canvas->translate(dx, 0); | 
|  158         canvas->drawPath(path, paint); |  158         canvas->drawPath(path, paint); | 
|  159  |  159  | 
|  160         // Translate to outside of clip bounds. |  160         // Translate to outside of clip bounds. | 
|  161         canvas->translate(-dx, 0); |  161         canvas->translate(-dx, 0); | 
|  162         canvas->translate(-30, -150); |  162         canvas->translate(-30, -150); | 
|  163         canvas->drawPath(path, paint); |  163         canvas->drawPath(path, paint); | 
|  164     } |  164     } | 
|  165 }; |  165 }; | 
|  166 DEF_GM( return new Blur2RectsNonNinePatchGM; ) |  166 DEF_GM( return new Blur2RectsNonNinePatchGM; ) | 
| OLD | NEW |