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 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 static void adjustLineToPixelBoundaries(FloatPoint& p1, FloatPoint& p2, floa
t strokeWidth, StrokeStyle); | 359 static void adjustLineToPixelBoundaries(FloatPoint& p1, FloatPoint& p2, floa
t strokeWidth, StrokeStyle); |
360 | 360 |
361 void beginAnnotation(const GraphicsContextAnnotation&); | 361 void beginAnnotation(const GraphicsContextAnnotation&); |
362 void endAnnotation(); | 362 void endAnnotation(); |
363 | 363 |
364 private: | 364 private: |
365 static void addCornerArc(SkPath*, const SkRect&, const IntSize&, int); | 365 static void addCornerArc(SkPath*, const SkRect&, const IntSize&, int); |
366 static void setPathFromConvexPoints(SkPath*, size_t, const FloatPoint*); | 366 static void setPathFromConvexPoints(SkPath*, size_t, const FloatPoint*); |
367 static void setRadii(SkVector*, IntSize, IntSize, IntSize, IntSize); | 367 static void setRadii(SkVector*, IntSize, IntSize, IntSize, IntSize); |
368 | 368 |
369 #if OS(DARWIN) | 369 #if OS(MACOSX) |
370 static inline int getFocusRingOutset(int offset) { return offset + 2; } | 370 static inline int getFocusRingOutset(int offset) { return offset + 2; } |
371 #else | 371 #else |
372 static inline int getFocusRingOutset(int offset) { return 0; } | 372 static inline int getFocusRingOutset(int offset) { return 0; } |
373 static const SkPMColor lineColors(int); | 373 static const SkPMColor lineColors(int); |
374 static const SkPMColor antiColors1(int); | 374 static const SkPMColor antiColors1(int); |
375 static const SkPMColor antiColors2(int); | 375 static const SkPMColor antiColors2(int); |
376 static void draw1xMarker(SkBitmap*, int); | 376 static void draw1xMarker(SkBitmap*, int); |
377 static void draw2xMarker(SkBitmap*, int); | 377 static void draw2xMarker(SkBitmap*, int); |
378 #endif | 378 #endif |
379 | 379 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 // FIXME: Make this go away: crbug.com/236892 | 462 // FIXME: Make this go away: crbug.com/236892 |
463 bool m_updatingControlTints : 1; | 463 bool m_updatingControlTints : 1; |
464 bool m_accelerated : 1; | 464 bool m_accelerated : 1; |
465 bool m_isCertainlyOpaque : 1; | 465 bool m_isCertainlyOpaque : 1; |
466 bool m_printing : 1; | 466 bool m_printing : 1; |
467 }; | 467 }; |
468 | 468 |
469 } // namespace WebCore | 469 } // namespace WebCore |
470 | 470 |
471 #endif // GraphicsContext_h | 471 #endif // GraphicsContext_h |
OLD | NEW |