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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 static void setRadii(SkVector*, IntSize, IntSize, IntSize, IntSize); | 429 static void setRadii(SkVector*, IntSize, IntSize, IntSize, IntSize); |
430 | 430 |
431 static PassRefPtr<SkColorFilter> WebCoreColorFilterToSkiaColorFilter(ColorFi
lter); | 431 static PassRefPtr<SkColorFilter> WebCoreColorFilterToSkiaColorFilter(ColorFi
lter); |
432 | 432 |
433 #if OS(MACOSX) | 433 #if OS(MACOSX) |
434 static inline int focusRingOutset(int offset) { return offset + 2; } | 434 static inline int focusRingOutset(int offset) { return offset + 2; } |
435 static inline int focusRingWidth(int width) { return width; } | 435 static inline int focusRingWidth(int width) { return width; } |
436 #else | 436 #else |
437 static inline int focusRingOutset(int offset) { return 0; } | 437 static inline int focusRingOutset(int offset) { return 0; } |
438 static inline int focusRingWidth(int width) { return 1; } | 438 static inline int focusRingWidth(int width) { return 1; } |
439 static const SkPMColor lineColors(int); | 439 static SkPMColor lineColors(int); |
440 static const SkPMColor antiColors1(int); | 440 static SkPMColor antiColors1(int); |
441 static const SkPMColor antiColors2(int); | 441 static SkPMColor antiColors2(int); |
442 static void draw1xMarker(SkBitmap*, int); | 442 static void draw1xMarker(SkBitmap*, int); |
443 static void draw2xMarker(SkBitmap*, int); | 443 static void draw2xMarker(SkBitmap*, int); |
444 #endif | 444 #endif |
445 | 445 |
446 // Helpers for drawing a focus ring (drawFocusRing) | 446 // Helpers for drawing a focus ring (drawFocusRing) |
447 float prepareFocusRingPaint(SkPaint&, const Color&, int width) const; | 447 float prepareFocusRingPaint(SkPaint&, const Color&, int width) const; |
448 void drawFocusRingPath(const SkPath&, const Color&, int width); | 448 void drawFocusRingPath(const SkPath&, const Color&, int width); |
449 void drawFocusRingRect(const SkRect&, const Color&, int width); | 449 void drawFocusRingRect(const SkRect&, const Color&, int width); |
450 | 450 |
451 | 451 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 bool m_accelerated : 1; | 537 bool m_accelerated : 1; |
538 bool m_isCertainlyOpaque : 1; | 538 bool m_isCertainlyOpaque : 1; |
539 bool m_printing : 1; | 539 bool m_printing : 1; |
540 bool m_antialiasHairlineImages : 1; | 540 bool m_antialiasHairlineImages : 1; |
541 bool m_shouldSmoothFonts : 1; | 541 bool m_shouldSmoothFonts : 1; |
542 }; | 542 }; |
543 | 543 |
544 } // namespace blink | 544 } // namespace blink |
545 | 545 |
546 #endif // GraphicsContext_h | 546 #endif // GraphicsContext_h |
OLD | NEW |