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

Side by Side Diff: sky/engine/platform/graphics/Path.cpp

Issue 1236953002: Roll Skia to 7b971f0152299ae9a924252a9bfd220318497bdd (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: now with less crash on startup Created 5 years, 5 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved.
3 * 2006 Rob Buis <buis@kde.org> 3 * 2006 Rob Buis <buis@kde.org>
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2013 Google Inc. All rights reserved. 5 * Copyright (C) 2013 Google Inc. All rights reserved.
6 * Copyright (C) 2013 Intel Corporation. All rights reserved. 6 * Copyright (C) 2013 Intel Corporation. All rights reserved.
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions 9 * modification, are permitted provided that the following conditions
10 * are met: 10 * are met:
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 m_path.addPath(src.skPath(), affineTransformToSkMatrix(transform)); 474 m_path.addPath(src.skPath(), affineTransformToSkMatrix(transform));
475 } 475 }
476 476
477 void Path::translate(const FloatSize& size) 477 void Path::translate(const FloatSize& size)
478 { 478 {
479 m_path.offset(WebCoreFloatToSkScalar(size.width()), WebCoreFloatToSkScalar(s ize.height())); 479 m_path.offset(WebCoreFloatToSkScalar(size.width()), WebCoreFloatToSkScalar(s ize.height()));
480 } 480 }
481 481
482 bool Path::subtractPath(const Path& other) 482 bool Path::subtractPath(const Path& other)
483 { 483 {
484 return Op(m_path, other.m_path, kDifference_PathOp, &m_path); 484 return Op(m_path, other.m_path, kDifference_SkPathOp, &m_path);
485 } 485 }
486 486
487 bool Path::intersectPath(const Path& other) 487 bool Path::intersectPath(const Path& other)
488 { 488 {
489 return Op(m_path, other.m_path, kIntersect_PathOp, &m_path); 489 return Op(m_path, other.m_path, kIntersect_SkPathOp, &m_path);
490 } 490 }
491 491
492 bool Path::unionPath(const Path& other) 492 bool Path::unionPath(const Path& other)
493 { 493 {
494 return Op(m_path, other.m_path, kUnion_PathOp, &m_path); 494 return Op(m_path, other.m_path, kUnion_SkPathOp, &m_path);
495 } 495 }
496 496
497 #if ENABLE(ASSERT) 497 #if ENABLE(ASSERT)
498 bool ellipseIsRenderable(float startAngle, float endAngle) 498 bool ellipseIsRenderable(float startAngle, float endAngle)
499 { 499 {
500 return (std::abs(endAngle - startAngle) < twoPiFloat) 500 return (std::abs(endAngle - startAngle) < twoPiFloat)
501 || WebCoreFloatNearlyEqual(std::abs(endAngle - startAngle), twoPiFloat); 501 || WebCoreFloatNearlyEqual(std::abs(endAngle - startAngle), twoPiFloat);
502 } 502 }
503 #endif 503 #endif
504 504
505 } // namespace blink 505 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/platform/graphics/DecodingImageGenerator.cpp ('k') | sky/engine/platform/graphics/skia/GaneshUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698