Remove debug messages that are no longer needed.
Code from arthurhsu@chromium.org
Original CL: http://codereview.appspot.com/5186045/
Review URL: http://codereview.appspot.com/5190042
git-svn-id: http://skia.googlecode.com/svn/trunk@2406 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/ports/SkFontHost_win.cpp b/src/ports/SkFontHost_win.cpp
index 9581d01..fdd522d 100755
--- a/src/ports/SkFontHost_win.cpp
+++ b/src/ports/SkFontHost_win.cpp
@@ -1052,22 +1052,12 @@
OUTLINETEXTMETRIC otm;
if (!GetOutlineTextMetrics(hdc, sizeof(otm), &otm) ||
!GetTextFace(hdc, LF_FACESIZE, lf.lfFaceName)) {
- // TODO(arthurhsu): remove after resolving http://crbug.com/94421
- DWORD error_code = GetLastError();
- SK_DEBUGBREAK(error_code == 0); // Possibly caused by sandboxing.
- SK_DEBUGBREAK(false); // GDI corruption.
-
goto Error;
}
lf.lfHeight = -SkToS32(otm.otmEMSquare);
designFont = CreateFontIndirect(&lf);
SelectObject(hdc, designFont);
if (!GetOutlineTextMetrics(hdc, sizeof(otm), &otm)) {
- // TODO(arthurhsu): remove after resolving http://crbug.com/94421
- DWORD error_code = GetLastError();
- SK_DEBUGBREAK(error_code == 0); // Possibly caused by sandboxing.
- SK_DEBUGBREAK(false); // GDI corruption.
-
goto Error;
}
const unsigned glyphCount = calculateGlyphCount(hdc);