| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "SkBitmapDevice.h" | 8 #include "SkBitmapDevice.h" |
| 9 #include "SkConfig8888.h" | 9 #include "SkConfig8888.h" |
| 10 #include "SkDeviceProperties.h" | 10 #include "SkDeviceProperties.h" |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 SkScalar x, SkScalar y, const SkPaint& paint) { | 322 SkScalar x, SkScalar y, const SkPaint& paint) { |
| 323 draw.drawText((const char*)text, len, x, y, paint); | 323 draw.drawText((const char*)text, len, x, y, paint); |
| 324 } | 324 } |
| 325 | 325 |
| 326 void SkBitmapDevice::drawPosText(const SkDraw& draw, const void* text, size_t le
n, | 326 void SkBitmapDevice::drawPosText(const SkDraw& draw, const void* text, size_t le
n, |
| 327 const SkScalar xpos[], int scalarsPerPos, | 327 const SkScalar xpos[], int scalarsPerPos, |
| 328 const SkPoint& offset, const SkPaint& paint) { | 328 const SkPoint& offset, const SkPaint& paint) { |
| 329 draw.drawPosText((const char*)text, len, xpos, scalarsPerPos, offset, paint)
; | 329 draw.drawPosText((const char*)text, len, xpos, scalarsPerPos, offset, paint)
; |
| 330 } | 330 } |
| 331 | 331 |
| 332 void SkBitmapDevice::drawTextOnPath(const SkDraw& draw, const void* text, | |
| 333 size_t len, const SkPath& path, | |
| 334 const SkMatrix* matrix, | |
| 335 const SkPaint& paint) { | |
| 336 draw.drawTextOnPath((const char*)text, len, path, matrix, paint); | |
| 337 } | |
| 338 | |
| 339 void SkBitmapDevice::drawVertices(const SkDraw& draw, SkCanvas::VertexMode vmode
, | 332 void SkBitmapDevice::drawVertices(const SkDraw& draw, SkCanvas::VertexMode vmode
, |
| 340 int vertexCount, | 333 int vertexCount, |
| 341 const SkPoint verts[], const SkPoint textures[
], | 334 const SkPoint verts[], const SkPoint textures[
], |
| 342 const SkColor colors[], SkXfermode* xmode, | 335 const SkColor colors[], SkXfermode* xmode, |
| 343 const uint16_t indices[], int indexCount, | 336 const uint16_t indices[], int indexCount, |
| 344 const SkPaint& paint) { | 337 const SkPaint& paint) { |
| 345 draw.drawVertices(vmode, vertexCount, verts, textures, colors, xmode, | 338 draw.drawVertices(vmode, vertexCount, verts, textures, colors, xmode, |
| 346 indices, indexCount, paint); | 339 indices, indexCount, paint); |
| 347 } | 340 } |
| 348 | 341 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 paint.getRasterizer() || | 376 paint.getRasterizer() || |
| 384 paint.getPathEffect() || | 377 paint.getPathEffect() || |
| 385 paint.isFakeBoldText() || | 378 paint.isFakeBoldText() || |
| 386 paint.getStyle() != SkPaint::kFill_Style || | 379 paint.getStyle() != SkPaint::kFill_Style || |
| 387 !SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrcOver_Mode)) | 380 !SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrcOver_Mode)) |
| 388 { | 381 { |
| 389 return true; | 382 return true; |
| 390 } | 383 } |
| 391 return false; | 384 return false; |
| 392 } | 385 } |
| OLD | NEW |