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

Unified Diff: src/core/SkFindAndPlaceGlyph.h

Issue 1561683002: Start using <type_traits> and <utility> (C++11). (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix skstd::unique_ptr::compressed_pair. Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkDraw.cpp ('k') | src/gpu/effects/GrPorterDuffXferProcessor.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkFindAndPlaceGlyph.h
diff --git a/src/core/SkFindAndPlaceGlyph.h b/src/core/SkFindAndPlaceGlyph.h
index bd6338d587448af77766122327e1236e6f531b99..c74a9820e4240e4a4d1c29dec7b4785223b0ff42 100644
--- a/src/core/SkFindAndPlaceGlyph.h
+++ b/src/core/SkFindAndPlaceGlyph.h
@@ -14,6 +14,7 @@
#include "SkPaint.h"
#include "SkTemplates.h"
#include "SkUtils.h"
+#include <utility>
// Calculate a type with the same size as the max of all the Ts.
// This must be top level because the is no specialization of inner classes.
@@ -91,7 +92,7 @@ private:
#define alignof __alignof
#endif
SkASSERT(alignof(Variant) <= alignof(Space));
- new(&fSpace) Variant(skstd::forward<Args>(args)...);
+ new(&fSpace) Variant(std::forward<Args>(args)...);
}
private:
@@ -609,7 +610,7 @@ inline void SkFindAndPlaceGlyph::ProcessPosText(
SkPoint mappedPoint = mapper.TranslationMapper::map(
positions.HorizontalPositions::nextPoint());
positioner.Positioner::findAndPositionGlyph(
- &cursor, mappedPoint, skstd::forward<ProcessOneGlyph>(processOneGlyph));
+ &cursor, mappedPoint, std::forward<ProcessOneGlyph>(processOneGlyph));
}
return;
}
@@ -681,7 +682,7 @@ inline void SkFindAndPlaceGlyph::ProcessPosText(
while (text < stop) {
SkPoint mappedPoint = mapper->map(positionReader->nextPoint());
findAndPosition->findAndPositionGlyph(
- &text, mappedPoint, skstd::forward<ProcessOneGlyph>(processOneGlyph));
+ &text, mappedPoint, std::forward<ProcessOneGlyph>(processOneGlyph));
}
}
@@ -725,7 +726,7 @@ inline void SkFindAndPlaceGlyph::ProcessText(
while (text < stop) {
current =
findAndPosition->findAndPositionGlyph(
- &text, current, skstd::forward<ProcessOneGlyph>(processOneGlyph));
+ &text, current, std::forward<ProcessOneGlyph>(processOneGlyph));
}
}
« no previous file with comments | « src/core/SkDraw.cpp ('k') | src/gpu/effects/GrPorterDuffXferProcessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698