summaryrefslogtreecommitdiffstats
path: root/skia
diff options
context:
space:
mode:
authorreed@google.com <reed@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-25 11:56:52 +0000
committerreed@google.com <reed@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-25 11:56:52 +0000
commitd60085052aa4d6493ab3e98fecb284c4502bc17f (patch)
treeb46a30884b07570b56333f9571861fa5c9fbe48c /skia
parent9a6629cea81ae2decc2258e40e8aebfe3829aafe (diff)
downloadchromium_src-d60085052aa4d6493ab3e98fecb284c4502bc17f.zip
chromium_src-d60085052aa4d6493ab3e98fecb284c4502bc17f.tar.gz
chromium_src-d60085052aa4d6493ab3e98fecb284c4502bc17f.tar.bz2
remove obsolete skia_sandbox_support_win files, and call SkTypeface_win's api
directly for ensuring that a LOGFONT is loaded. This change just removes the (now) redundant code paths (that skia no longer calls into). Review URL: https://codereview.chromium.org/12902041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190370 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
-rw-r--r--skia/ext/skia_sandbox_support_win.cc30
-rw-r--r--skia/ext/skia_sandbox_support_win.h16
-rw-r--r--skia/skia.gyp4
3 files changed, 0 insertions, 50 deletions
diff --git a/skia/ext/skia_sandbox_support_win.cc b/skia/ext/skia_sandbox_support_win.cc
deleted file mode 100644
index 0c1bf7b..0000000
--- a/skia/ext/skia_sandbox_support_win.cc
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "skia_sandbox_support_win.h"
-#include "SkFontHost.h"
-#include "SkTypeface_win.h"
-
-static SkiaEnsureTypefaceAccessible g_skia_ensure_typeface_accessible = NULL;
-
-SK_API void SetSkiaEnsureTypefaceAccessible(SkiaEnsureTypefaceAccessible func) {
- // This function is supposed to be called once in process life time.
- SkASSERT(g_skia_ensure_typeface_accessible == NULL);
- g_skia_ensure_typeface_accessible = func;
-
- // This is not hooked up in skia (yet), but soon it will replace having
- // SkFontHost::EnsureTypefaceAccessible(). So for now we do both, but after
- // the next skia DEPS roll, we will remove our global and our impl of
- // SkFontHost::EnsureTypefaceAccessible().
- SkTypeface_SetEnsureLOGFONTAccessibleProc(func);
-}
-
-// static
-void SkFontHost::EnsureTypefaceAccessible(const SkTypeface& typeface) {
- if (g_skia_ensure_typeface_accessible) {
- LOGFONT lf;
- SkLOGFONTFromTypeface(&typeface, &lf);
- g_skia_ensure_typeface_accessible(lf);
- }
-}
diff --git a/skia/ext/skia_sandbox_support_win.h b/skia/ext/skia_sandbox_support_win.h
deleted file mode 100644
index 47615bf..0000000
--- a/skia/ext/skia_sandbox_support_win.h
+++ /dev/null
@@ -1,16 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef SKIA_EXT_SKIA_SANDBOX_SUPPORT_WIN_H_
-#define SKIA_EXT_SKIA_SANDBOX_SUPPORT_WIN_H_
-
-#include <windows.h>
-
-#include "SkPreConfig.h"
-
-typedef void (*SkiaEnsureTypefaceAccessible)(const LOGFONT& font);
-
-SK_API void SetSkiaEnsureTypefaceAccessible(SkiaEnsureTypefaceAccessible func);
-
-#endif // SKIA_EXT_SKIA_SANDBOX_SUPPORT_WIN_H_
diff --git a/skia/skia.gyp b/skia/skia.gyp
index 5ac9fd0..3db86fc 100644
--- a/skia/skia.gyp
+++ b/skia/skia.gyp
@@ -101,7 +101,6 @@
#'../third_party/skia/src/ports/SkFontHost_linux.cpp',
'../third_party/skia/src/ports/SkFontHost_mac.cpp',
#'../third_party/skia/src/ports/SkFontHost_none.cpp',
- '../third_party/skia/src/ports/SkFontHost_sandbox_none.cpp',
'../third_party/skia/src/ports/SkFontHost_win.cpp',
'../third_party/skia/src/ports/SkGlobalInitialization_chromium.cpp',
#'../third_party/skia/src/ports/SkImageDecoder_CG.cpp',
@@ -184,8 +183,6 @@
'ext/platform_device_win.cc',
'ext/refptr.h',
'ext/SkMemory_new_handler.cpp',
- 'ext/skia_sandbox_support_win.h',
- 'ext/skia_sandbox_support_win.cc',
'ext/skia_trace_shim.h',
'ext/skia_utils_base.cc',
'ext/skia_utils_base.h',
@@ -496,7 +493,6 @@
[ 'OS == "win"', {
'sources!': [
'../third_party/skia/src/core/SkMMapStream.cpp',
- '../third_party/skia/src/ports/SkFontHost_sandbox_none.cpp',
'../third_party/skia/src/ports/SkThread_pthread.cpp',
'../third_party/skia/src/ports/SkTime_Unix.cpp',
'ext/SkThread_chrome.cc',