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 "SkDocument.h" | 8 #include "SkDocument.h" |
9 #include "SkStream.h" | 9 #include "SkStream.h" |
10 | 10 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 case kBetweenPages_State: | 42 case kBetweenPages_State: |
43 fState = kInPage_State; | 43 fState = kInPage_State; |
44 return this->onBeginPage(width, height, inner); | 44 return this->onBeginPage(width, height, inner); |
45 case kInPage_State: | 45 case kInPage_State: |
46 this->endPage(); | 46 this->endPage(); |
47 break; | 47 break; |
48 case kClosed_State: | 48 case kClosed_State: |
49 return NULL; | 49 return NULL; |
50 } | 50 } |
51 } | 51 } |
52 SkASSERT(!"never get here"); | 52 SkDEBUGFAIL("never get here"); |
53 return NULL; | 53 return NULL; |
54 } | 54 } |
55 | 55 |
56 void SkDocument::endPage() { | 56 void SkDocument::endPage() { |
57 if (kInPage_State == fState) { | 57 if (kInPage_State == fState) { |
58 fState = kBetweenPages_State; | 58 fState = kBetweenPages_State; |
59 this->onEndPage(); | 59 this->onEndPage(); |
60 } | 60 } |
61 } | 61 } |
62 | 62 |
(...skipping 12 matching lines...) Expand all Loading... |
75 fStream = NULL; | 75 fStream = NULL; |
76 return; | 76 return; |
77 case kInPage_State: | 77 case kInPage_State: |
78 this->endPage(); | 78 this->endPage(); |
79 break; | 79 break; |
80 case kClosed_State: | 80 case kClosed_State: |
81 return; | 81 return; |
82 } | 82 } |
83 } | 83 } |
84 } | 84 } |
OLD | NEW |