| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  * Copyright 2013 Google Inc. |    2  * Copyright 2013 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 "SkCanvas.h" |    9 #include "SkCanvas.h" | 
|   10 #include "SkPath.h" |   10 #include "SkPath.h" | 
| (...skipping 14 matching lines...) Expand all  Loading... | 
|   25         FakeCloseCorner,   // The last point coincides with the first one at a c
     orner. |   25         FakeCloseCorner,   // The last point coincides with the first one at a c
     orner. | 
|   26                            // The path looks closed, but final rendering has 2 e
     nds with cap. |   26                            // The path looks closed, but final rendering has 2 e
     nds with cap. | 
|   27  |   27  | 
|   28         FakeCloseMiddle,   // The last point coincides with the first one in the
      middle of a line. |   28         FakeCloseMiddle,   // The last point coincides with the first one in the
      middle of a line. | 
|   29                            // The path looks closed, and the final rendering loo
     ks closed too. |   29                            // The path looks closed, and the final rendering loo
     ks closed too. | 
|   30  |   30  | 
|   31         kClosureTypeCount |   31         kClosureTypeCount | 
|   32     }; |   32     }; | 
|   33  |   33  | 
|   34 protected: |   34 protected: | 
 |   35     virtual uint32_t onGetFlags() const SK_OVERRIDE { | 
 |   36         return kSkipTiled_Flag; | 
 |   37     } | 
 |   38  | 
|   35     virtual SkString onShortName() SK_OVERRIDE { |   39     virtual SkString onShortName() SK_OVERRIDE { | 
|   36         return SkString("nonclosedpaths"); |   40         return SkString("nonclosedpaths"); | 
|   37     } |   41     } | 
|   38  |   42  | 
|   39     // 12 * 18 + 3 cases, every case is 100 * 100 pixels. |   43     // 12 * 18 + 3 cases, every case is 100 * 100 pixels. | 
|   40     virtual SkISize onISize() SK_OVERRIDE { |   44     virtual SkISize onISize() SK_OVERRIDE { | 
|   41         return SkISize::Make(1220, 1920); |   45         return SkISize::Make(1220, 1920); | 
|   42     } |   46     } | 
|   43  |   47  | 
|   44     // Use rect-like geometry for non-closed path, for right angles make it |   48     // Use rect-like geometry for non-closed path, for right angles make it | 
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  136  |  140  | 
|  137 private: |  141 private: | 
|  138     typedef GM INHERITED; |  142     typedef GM INHERITED; | 
|  139 }; |  143 }; | 
|  140  |  144  | 
|  141 ////////////////////////////////////////////////////////////////////////////// |  145 ////////////////////////////////////////////////////////////////////////////// | 
|  142  |  146  | 
|  143 DEF_GM(return new NonClosedPathsGM;) |  147 DEF_GM(return new NonClosedPathsGM;) | 
|  144  |  148  | 
|  145 } |  149 } | 
| OLD | NEW |