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

Side by Side Diff: skia/ext/SkFontHost_fontconfig_direct.cpp

Issue 12771003: Revert 187283 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
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
« no previous file with comments | « skia/ext/SkFontHost_fontconfig_direct.h ('k') | skia/ext/SkFontHost_fontconfig_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* libs/graphics/ports/SkFontHost_fontconfig_direct.cpp 1 /* libs/graphics/ports/SkFontHost_fontconfig_direct.cpp
2 ** 2 **
3 ** Copyright 2009, Google Inc. 3 ** Copyright 2009, Google Inc.
4 ** 4 **
5 ** Licensed under the Apache License, Version 2.0 (the "License"); 5 ** Licensed under the Apache License, Version 2.0 (the "License");
6 ** you may not use this file except in compliance with the License. 6 ** you may not use this file except in compliance with the License.
7 ** You may obtain a copy of the License at 7 ** You may obtain a copy of the License at
8 ** 8 **
9 ** http://www.apache.org/licenses/LICENSE-2.0 9 ** http://www.apache.org/licenses/LICENSE-2.0
10 ** 10 **
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 495
496 int FontConfigDirect::Open(unsigned filefaceid) { 496 int FontConfigDirect::Open(unsigned filefaceid) {
497 SkAutoMutexAcquire ac(mutex_); 497 SkAutoMutexAcquire ac(mutex_);
498 const std::map<unsigned, std::string>::const_iterator 498 const std::map<unsigned, std::string>::const_iterator
499 i = fileid_to_filename_.find(FileFaceIdToFileId(filefaceid)); 499 i = fileid_to_filename_.find(FileFaceIdToFileId(filefaceid));
500 if (i == fileid_to_filename_.end()) 500 if (i == fileid_to_filename_.end())
501 return -1; 501 return -1;
502 502
503 return open(i->second.c_str(), O_RDONLY); 503 return open(i->second.c_str(), O_RDONLY);
504 } 504 }
OLDNEW
« no previous file with comments | « skia/ext/SkFontHost_fontconfig_direct.h ('k') | skia/ext/SkFontHost_fontconfig_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698