| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008-2009 Torch Mobile, Inc. | 3 * Copyright (C) 2008-2009 Torch Mobile, Inc. |
| 4 * Copyright (C) 2013 Google Inc. All rights reserved. | 4 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 { | 417 { |
| 418 realizePaintSave(); | 418 realizePaintSave(); |
| 419 return m_paintState; | 419 return m_paintState; |
| 420 } | 420 } |
| 421 | 421 |
| 422 static void setPathFromConvexPoints(SkPath*, size_t, const FloatPoint*); | 422 static void setPathFromConvexPoints(SkPath*, size_t, const FloatPoint*); |
| 423 static void setRadii(SkVector*, IntSize, IntSize, IntSize, IntSize); | 423 static void setRadii(SkVector*, IntSize, IntSize, IntSize, IntSize); |
| 424 | 424 |
| 425 static PassRefPtr<SkColorFilter> WebCoreColorFilterToSkiaColorFilter(ColorFi
lter); | 425 static PassRefPtr<SkColorFilter> WebCoreColorFilterToSkiaColorFilter(ColorFi
lter); |
| 426 | 426 |
| 427 #if OS(MACOSX) | |
| 428 static inline int focusRingOutset(int offset) { return offset + 2; } | |
| 429 static inline int focusRingWidth(int width) { return width; } | |
| 430 #else | |
| 431 static inline int focusRingOutset(int offset) { return 0; } | 427 static inline int focusRingOutset(int offset) { return 0; } |
| 432 static inline int focusRingWidth(int width) { return 1; } | 428 static inline int focusRingWidth(int width) { return 1; } |
| 433 static SkPMColor lineColors(int); | 429 static SkPMColor lineColors(int); |
| 434 static SkPMColor antiColors1(int); | 430 static SkPMColor antiColors1(int); |
| 435 static SkPMColor antiColors2(int); | 431 static SkPMColor antiColors2(int); |
| 436 static void draw1xMarker(SkBitmap*, int); | 432 static void draw1xMarker(SkBitmap*, int); |
| 437 static void draw2xMarker(SkBitmap*, int); | 433 static void draw2xMarker(SkBitmap*, int); |
| 438 #endif | |
| 439 | 434 |
| 440 // Helpers for drawing a focus ring (drawFocusRing) | 435 // Helpers for drawing a focus ring (drawFocusRing) |
| 441 float prepareFocusRingPaint(SkPaint&, const Color&, int width) const; | 436 float prepareFocusRingPaint(SkPaint&, const Color&, int width) const; |
| 442 void drawFocusRingPath(const SkPath&, const Color&, int width); | 437 void drawFocusRingPath(const SkPath&, const Color&, int width); |
| 443 void drawFocusRingRect(const SkRect&, const Color&, int width); | 438 void drawFocusRingRect(const SkRect&, const Color&, int width); |
| 444 | 439 |
| 445 | 440 |
| 446 // SkCanvas wrappers. | 441 // SkCanvas wrappers. |
| 447 void clipPath(const SkPath&, AntiAliasingMode = NotAntiAliased, SkRegion::Op
= SkRegion::kIntersect_Op); | 442 void clipPath(const SkPath&, AntiAliasingMode = NotAntiAliased, SkRegion::Op
= SkRegion::kIntersect_Op); |
| 448 void clipRRect(const SkRRect&, AntiAliasingMode = NotAntiAliased, SkRegion::
Op = SkRegion::kIntersect_Op); | 443 void clipRRect(const SkRRect&, AntiAliasingMode = NotAntiAliased, SkRegion::
Op = SkRegion::kIntersect_Op); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 | 525 |
| 531 bool m_accelerated : 1; | 526 bool m_accelerated : 1; |
| 532 bool m_isCertainlyOpaque : 1; | 527 bool m_isCertainlyOpaque : 1; |
| 533 bool m_antialiasHairlineImages : 1; | 528 bool m_antialiasHairlineImages : 1; |
| 534 bool m_shouldSmoothFonts : 1; | 529 bool m_shouldSmoothFonts : 1; |
| 535 }; | 530 }; |
| 536 | 531 |
| 537 } // namespace blink | 532 } // namespace blink |
| 538 | 533 |
| 539 #endif // GraphicsContext_h | 534 #endif // GraphicsContext_h |
| OLD | NEW |