Index: cc/font_atlas.cc |
diff --git a/cc/font_atlas.cc b/cc/font_atlas.cc |
index 0b483c9bb04c4e35940d29fa81b6452d7333f2a9..b9d8e23e95bb8b536b5cb9a519b66499141c5901 100644 |
--- a/cc/font_atlas.cc |
+++ b/cc/font_atlas.cc |
@@ -31,7 +31,7 @@ FontAtlas::~FontAtlas() |
void FontAtlas::drawText(SkCanvas* canvas, const SkPaint& paint, const std::string& text, const gfx::Point& destPosition, const IntSize& clip) const |
{ |
- DCHECK(Proxy::isImplThread()); |
+ DCHECK(m_threadChecker.CalledOnValidThread()); |
std::vector<std::string> lines; |
base::SplitString(text, '\n', &lines); |
@@ -47,7 +47,7 @@ void FontAtlas::drawText(SkCanvas* canvas, const SkPaint& paint, const std::stri |
void FontAtlas::drawOneLineOfTextInternal(SkCanvas* canvas, const SkPaint& paint, const std::string& textLine, const gfx::Point& destPosition) const |
{ |
- DCHECK(Proxy::isImplThread()); |
+ DCHECK(m_threadChecker.CalledOnValidThread()); |
gfx::Point position = destPosition; |
for (unsigned i = 0; i < textLine.length(); ++i) { |
@@ -62,7 +62,7 @@ void FontAtlas::drawOneLineOfTextInternal(SkCanvas* canvas, const SkPaint& paint |
void FontAtlas::drawDebugAtlas(SkCanvas* canvas, const gfx::Point& destPosition) const |
{ |
- DCHECK(Proxy::isImplThread()); |
+ DCHECK(m_threadChecker.CalledOnValidThread()); |
SkIRect source = SkIRect::MakeWH(m_atlas.width(), m_atlas.height()); |
canvas->drawBitmapRect(m_atlas, &source, SkRect::MakeXYWH(destPosition.x(), destPosition.y(), m_atlas.width(), m_atlas.height())); |