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

Side by Side Diff: content/shell/app/blink_test_platform_support_android.cc

Issue 2618443002: Remove use of legacy SkFontMgr factories. (Closed)
Patch Set: Address comments. Created 3 years, 11 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 "content/shell/app/blink_test_platform_support.h" 5 #include "content/shell/app/blink_test_platform_support.h"
6 6
7 #include "skia/ext/fontmgr_default_android.h" 7 #include "skia/ext/fontmgr_default_android.h"
8 #include "third_party/skia/include/ports/SkFontMgr.h"
8 #include "third_party/skia/include/ports/SkFontMgr_android.h" 9 #include "third_party/skia/include/ports/SkFontMgr_android.h"
9 10
10 namespace { 11 namespace {
11 12
12 // The root directory on the device to which resources will be pushed. This 13 // The root directory on the device to which resources will be pushed. This
13 // value needs to be equal to that set in chromium_android.py. 14 // value needs to be equal to that set in chromium_android.py.
14 #define DEVICE_SOURCE_ROOT_DIR "/data/local/tmp/content_shell/" 15 #define DEVICE_SOURCE_ROOT_DIR "/data/local/tmp/content_shell/"
15 16
16 // Primary font configuration file on the device for Skia. 17 // Primary font configuration file on the device for Skia.
17 const char kPrimaryFontConfig[] = 18 const char kPrimaryFontConfig[] =
(...skipping 21 matching lines...) Expand all
39 custom.fBasePath = kFontDirectory; 40 custom.fBasePath = kFontDirectory;
40 custom.fFontsXml = kPrimaryFontConfig; 41 custom.fFontsXml = kPrimaryFontConfig;
41 custom.fFallbackFontsXml = kFallbackFontConfig; 42 custom.fFallbackFontsXml = kFallbackFontConfig;
42 custom.fIsolated = false; 43 custom.fIsolated = false;
43 44
44 SetDefaultSkiaFactory(SkFontMgr_New_Android(&custom)); 45 SetDefaultSkiaFactory(SkFontMgr_New_Android(&custom));
45 return true; 46 return true;
46 } 47 }
47 48
48 } // namespace content 49 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698