Changeset 85350 in webkit
- Timestamp:
- Apr 29, 2011 12:32:35 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r85349 r85350 1 2011-04-29 James Robinson <jamesr@chromium.org> 2 3 Unreviewed, rolling out r85330. 4 http://trac.webkit.org/changeset/85330 5 https://bugs.webkit.org/show_bug.cgi?id=41311 6 7 Caused unexpected border rendering change on 500 tests on chromium linux. 8 9 * platform/graphics/skia/GraphicsContextSkia.cpp: 10 (WebCore::GraphicsContext::drawConvexPolygon): 11 (WebCore::GraphicsContext::clipConvexPolygon): 12 1 13 2011-04-29 Csaba Osztrogonác <ossy@webkit.org> 2 14 -
trunk/Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp
r85330 r85350 450 450 } 451 451 452 static void setPathFromConvexPoints(SkPath* path, size_t numPoints, const FloatPoint* points)453 {454 path->incReserve(numPoints);455 path->moveTo(WebCoreFloatToSkScalar(points[0].x()),456 WebCoreFloatToSkScalar(points[0].y()));457 for (size_t i = 1; i < numPoints; ++i) {458 path->lineTo(WebCoreFloatToSkScalar(points[i].x()),459 WebCoreFloatToSkScalar(points[i].y()));460 }461 path->setIsConvex(true);462 }463 464 452 void GraphicsContext::drawConvexPolygon(size_t numPoints, 465 453 const FloatPoint* points, … … 475 463 476 464 SkPath path; 477 setPathFromConvexPoints(&path, numPoints, points); 465 466 path.incReserve(numPoints); 467 path.moveTo(WebCoreFloatToSkScalar(points[0].x()), 468 WebCoreFloatToSkScalar(points[0].y())); 469 for (size_t i = 1; i < numPoints; i++) { 470 path.lineTo(WebCoreFloatToSkScalar(points[i].x()), 471 WebCoreFloatToSkScalar(points[i].y())); 472 } 478 473 479 474 if (!isPathSkiaSafe(getCTM(), path)) … … 482 477 SkPaint paint; 483 478 platformContext()->setupPaintForFilling(&paint); 484 paint.setAntiAlias(shouldAntialias);485 479 platformContext()->canvas()->drawPath(path, paint); 486 480 … … 500 494 return; 501 495 502 SkPath path; 503 setPathFromConvexPoints(&path, numPoints, points); 504 platformContext()->canvas()->clipPath(path); 496 // FIXME: IMPLEMENT!! 505 497 } 506 498
Note: See TracChangeset
for help on using the changeset viewer.