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

Unified Diff: Source/platform/fonts/opentype/OpenTypeSanitizer.cpp

Issue 954953002: Adding GetTableAction method to Blink to handle color table tags (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updating Test Expectation for Virtual test Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/fonts/opentype/OpenTypeSanitizer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/opentype/OpenTypeSanitizer.cpp
diff --git a/Source/platform/fonts/opentype/OpenTypeSanitizer.cpp b/Source/platform/fonts/opentype/OpenTypeSanitizer.cpp
index a995d1fb0115de9282a79c1f893a6f45139ecfc9..b10d2c104c513c333fb5ec929a3c173faed6deea 100644
--- a/Source/platform/fonts/opentype/OpenTypeSanitizer.cpp
+++ b/Source/platform/fonts/opentype/OpenTypeSanitizer.cpp
@@ -31,7 +31,6 @@
#include "config.h"
#include "platform/fonts/opentype/OpenTypeSanitizer.h"
-#include "opentype-sanitiser.h"
#include "ots-memory-stream.h"
#include "platform/SharedBuffer.h"
#include "public/platform/Platform.h"
@@ -67,8 +66,6 @@ PassRefPtr<SharedBuffer> OpenTypeSanitizer::sanitize()
if (m_buffer->size() > maxWebFontSize)
return nullptr;
- ots::EnableWOFF2();
-
// A transcoded font is usually smaller than an original font.
// However, it can be slightly bigger than the original one due to
// name table replacement and/or padding for glyf table.
@@ -78,7 +75,8 @@ PassRefPtr<SharedBuffer> OpenTypeSanitizer::sanitize()
ots::ExpandingMemoryStream output(m_buffer->size(), maxWebFontSize);
double start = currentTime();
- ots::OTSContext otsContext;
+ BlinkOTSContext otsContext;
+
if (!otsContext.Process(&output, reinterpret_cast<const uint8_t*>(m_buffer->data()), m_buffer->size()))
return nullptr;
« no previous file with comments | « Source/platform/fonts/opentype/OpenTypeSanitizer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698