| 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 29 matching lines...) Expand all Loading... |
| 40 #include "platform/graphics/skia/SkiaUtils.h" | 40 #include "platform/graphics/skia/SkiaUtils.h" |
| 41 #include "third_party/skia/include/core/SkClipOp.h" | 41 #include "third_party/skia/include/core/SkClipOp.h" |
| 42 #include "third_party/skia/include/core/SkImageFilter.h" | 42 #include "third_party/skia/include/core/SkImageFilter.h" |
| 43 #include "third_party/skia/include/core/SkMetaData.h" | 43 #include "third_party/skia/include/core/SkMetaData.h" |
| 44 #include "third_party/skia/include/core/SkRefCnt.h" | 44 #include "third_party/skia/include/core/SkRefCnt.h" |
| 45 #include "wtf/Allocator.h" | 45 #include "wtf/Allocator.h" |
| 46 #include "wtf/Forward.h" | 46 #include "wtf/Forward.h" |
| 47 #include "wtf/Noncopyable.h" | 47 #include "wtf/Noncopyable.h" |
| 48 #include <memory> | 48 #include <memory> |
| 49 | 49 |
| 50 class SkBitmap; | |
| 51 class SkPath; | 50 class SkPath; |
| 52 class SkRRect; | 51 class SkRRect; |
| 53 struct SkRect; | 52 struct SkRect; |
| 54 | 53 |
| 55 namespace blink { | 54 namespace blink { |
| 56 | 55 |
| 57 class FloatRect; | 56 class FloatRect; |
| 58 class FloatRoundedRect; | 57 class FloatRoundedRect; |
| 59 class KURL; | 58 class KURL; |
| 60 class PaintController; | 59 class PaintController; |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 return m_paintState; | 379 return m_paintState; |
| 381 } | 380 } |
| 382 | 381 |
| 383 template <typename DrawTextFunc> | 382 template <typename DrawTextFunc> |
| 384 void drawTextPasses(const DrawTextFunc&); | 383 void drawTextPasses(const DrawTextFunc&); |
| 385 | 384 |
| 386 #if OS(MACOSX) | 385 #if OS(MACOSX) |
| 387 static inline int focusRingOffset(int offset) { return offset + 2; } | 386 static inline int focusRingOffset(int offset) { return offset + 2; } |
| 388 #else | 387 #else |
| 389 static inline int focusRingOffset(int offset) { return 0; } | 388 static inline int focusRingOffset(int offset) { return 0; } |
| 390 static SkPMColor lineColors(int); | |
| 391 static SkPMColor antiColors1(int); | |
| 392 static SkPMColor antiColors2(int); | |
| 393 static void draw1xMarker(SkBitmap*, int); | |
| 394 static void draw2xMarker(SkBitmap*, int); | |
| 395 #endif | 389 #endif |
| 396 | 390 |
| 397 void saveLayer(const SkRect* bounds, const PaintFlags*); | 391 void saveLayer(const SkRect* bounds, const PaintFlags*); |
| 398 void restoreLayer(); | 392 void restoreLayer(); |
| 399 | 393 |
| 400 // Helpers for drawing a focus ring (drawFocusRing) | 394 // Helpers for drawing a focus ring (drawFocusRing) |
| 401 void drawFocusRingPath(const SkPath&, const Color&, float width); | 395 void drawFocusRingPath(const SkPath&, const Color&, float width); |
| 402 void drawFocusRingRect(const SkRect&, const Color&, float width); | 396 void drawFocusRingRect(const SkRect&, const Color&, float width); |
| 403 | 397 |
| 404 // SkCanvas wrappers. | 398 // SkCanvas wrappers. |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 | 459 |
| 466 float m_deviceScaleFactor; | 460 float m_deviceScaleFactor; |
| 467 | 461 |
| 468 unsigned m_printing : 1; | 462 unsigned m_printing : 1; |
| 469 unsigned m_hasMetaData : 1; | 463 unsigned m_hasMetaData : 1; |
| 470 }; | 464 }; |
| 471 | 465 |
| 472 } // namespace blink | 466 } // namespace blink |
| 473 | 467 |
| 474 #endif // GraphicsContext_h | 468 #endif // GraphicsContext_h |
| OLD | NEW |