Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1225)

Side by Side Diff: trunk/src/ports/SkFontHost_mac.cpp

Issue 12739006: move most of SkFontHost to private (preceeding making it all private) (Closed) Base URL: http://skia.googlecode.com/svn/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
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 8
9 #include <vector> 9 #include <vector>
10 #ifdef SK_BUILD_FOR_MAC 10 #ifdef SK_BUILD_FOR_MAC
(...skipping 1663 matching lines...) Expand 10 before | Expand all | Expand 10 after
1674 entry->logicalLength = SkEndian_SwapBE32(tableSize); 1674 entry->logicalLength = SkEndian_SwapBE32(tableSize);
1675 1675
1676 dataPtr += (tableSize + 3) & ~3; 1676 dataPtr += (tableSize + 3) & ~3;
1677 ++entry; 1677 ++entry;
1678 } 1678 }
1679 1679
1680 return stream; 1680 return stream;
1681 } 1681 }
1682 1682
1683 size_t SkFontHost::GetFileName(SkFontID fontID, char path[], size_t length, int3 2_t* index) { 1683 size_t SkFontHost::GetFileName(SkFontID fontID, char path[], size_t length, int3 2_t* index) {
1684 SkDEBUGFAIL("SkFontHost::GetFileName unimplemented");
1685 return 0; 1684 return 0;
1686 } 1685 }
1687 1686
1688 /////////////////////////////////////////////////////////////////////////////// 1687 ///////////////////////////////////////////////////////////////////////////////
1689 1688
1690 #include "SkStream.h" 1689 #include "SkStream.h"
1691 1690
1692 void SkFontHost::Serialize(const SkTypeface* face, SkWStream* stream) { 1691 void SkFontHost::Serialize(const SkTypeface* face, SkWStream* stream) {
1693 SkFontDescriptor desc; 1692 SkFontDescriptor desc;
1694 face->onGetFontDescriptor(&desc); 1693 face->onGetFontDescriptor(&desc);
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
1888 } 1887 }
1889 1888
1890 void SkTypeface_Mac::onGetFontDescriptor(SkFontDescriptor* desc) const { 1889 void SkTypeface_Mac::onGetFontDescriptor(SkFontDescriptor* desc) const {
1891 this->INHERITED::onGetFontDescriptor(desc); 1890 this->INHERITED::onGetFontDescriptor(desc);
1892 SkString tmpStr; 1891 SkString tmpStr;
1893 1892
1894 desc->setFamilyName(get_str(CTFontCopyFamilyName(fFontRef), &tmpStr)); 1893 desc->setFamilyName(get_str(CTFontCopyFamilyName(fFontRef), &tmpStr));
1895 desc->setFullName(get_str(CTFontCopyFullName(fFontRef), &tmpStr)); 1894 desc->setFullName(get_str(CTFontCopyFullName(fFontRef), &tmpStr));
1896 desc->setPostscriptName(get_str(CTFontCopyPostScriptName(fFontRef), &tmpStr) ); 1895 desc->setPostscriptName(get_str(CTFontCopyPostScriptName(fFontRef), &tmpStr) );
1897 } 1896 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698