OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 #include <stdint.h> |
| 6 |
5 #include "skia/ext/skia_utils_base.h" | 7 #include "skia/ext/skia_utils_base.h" |
6 | 8 |
7 namespace skia { | 9 namespace skia { |
8 | 10 |
9 bool ReadSkString(base::PickleIterator* iter, SkString* str) { | 11 bool ReadSkString(base::PickleIterator* iter, SkString* str) { |
10 int reply_length; | 12 int reply_length; |
11 const char* reply_text; | 13 const char* reply_text; |
12 | 14 |
13 if (!iter->ReadData(&reply_text, &reply_length)) | 15 if (!iter->ReadData(&reply_text, &reply_length)) |
14 return false; | 16 return false; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 } | 70 } |
69 if (SkFontHost::kVertical_LCDOrientation == SkFontHost::GetSubpixelOrien
tation()){ | 71 if (SkFontHost::kVertical_LCDOrientation == SkFontHost::GetSubpixelOrien
tation()){ |
70 index |= 2; | 72 index |= 2; |
71 } | 73 } |
72 return gGeo[index]; | 74 return gGeo[index]; |
73 } | 75 } |
74 } | 76 } |
75 | 77 |
76 } // namespace skia | 78 } // namespace skia |
77 | 79 |
OLD | NEW |