| 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 27 matching lines...) Expand all Loading... |
| 38 #include "core/platform/graphics/ImageBuffer.h" | 38 #include "core/platform/graphics/ImageBuffer.h" |
| 39 #include "core/platform/graphics/ImageOrientation.h" | 39 #include "core/platform/graphics/ImageOrientation.h" |
| 40 #include "core/platform/graphics/skia/OpaqueRegionSkia.h" | 40 #include "core/platform/graphics/skia/OpaqueRegionSkia.h" |
| 41 #include "wtf/FastAllocBase.h" | 41 #include "wtf/FastAllocBase.h" |
| 42 #include "wtf/Forward.h" | 42 #include "wtf/Forward.h" |
| 43 #include "wtf/Noncopyable.h" | 43 #include "wtf/Noncopyable.h" |
| 44 #include "wtf/PassOwnPtr.h" | 44 #include "wtf/PassOwnPtr.h" |
| 45 | 45 |
| 46 class SkBitmap; | 46 class SkBitmap; |
| 47 class SkDevice; | 47 class SkDevice; |
| 48 class SkImage; |
| 48 class SkPaint; | 49 class SkPaint; |
| 49 class SkPath; | 50 class SkPath; |
| 50 class SkRRect; | 51 class SkRRect; |
| 51 struct SkRect; | 52 struct SkRect; |
| 52 | 53 |
| 53 namespace WebCore { | 54 namespace WebCore { |
| 54 | 55 |
| 55 class ImageBuffer; | 56 class ImageBuffer; |
| 56 class KURL; | 57 class KURL; |
| 57 | 58 |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 void clearRect(const FloatRect&); | 233 void clearRect(const FloatRect&); |
| 233 | 234 |
| 234 void strokeRect(const FloatRect&, float lineWidth); | 235 void strokeRect(const FloatRect&, float lineWidth); |
| 235 | 236 |
| 236 void drawImage(Image*, const IntPoint&, CompositeOperator = CompositeSourceO
ver, RespectImageOrientationEnum = DoNotRespectImageOrientation); | 237 void drawImage(Image*, const IntPoint&, CompositeOperator = CompositeSourceO
ver, RespectImageOrientationEnum = DoNotRespectImageOrientation); |
| 237 void drawImage(Image*, const IntRect&, CompositeOperator = CompositeSourceOv
er, RespectImageOrientationEnum = DoNotRespectImageOrientation, bool useLowQuali
tyScale = false); | 238 void drawImage(Image*, const IntRect&, CompositeOperator = CompositeSourceOv
er, RespectImageOrientationEnum = DoNotRespectImageOrientation, bool useLowQuali
tyScale = false); |
| 238 void drawImage(Image*, const IntPoint& destPoint, const IntRect& srcRect, Co
mpositeOperator = CompositeSourceOver, RespectImageOrientationEnum = DoNotRespec
tImageOrientation); | 239 void drawImage(Image*, const IntPoint& destPoint, const IntRect& srcRect, Co
mpositeOperator = CompositeSourceOver, RespectImageOrientationEnum = DoNotRespec
tImageOrientation); |
| 239 void drawImage(Image*, const FloatRect& destRect); | 240 void drawImage(Image*, const FloatRect& destRect); |
| 240 void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect,
CompositeOperator = CompositeSourceOver, RespectImageOrientationEnum = DoNotResp
ectImageOrientation, bool useLowQualityScale = false); | 241 void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect,
CompositeOperator = CompositeSourceOver, RespectImageOrientationEnum = DoNotResp
ectImageOrientation, bool useLowQualityScale = false); |
| 241 void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect,
CompositeOperator, BlendMode, RespectImageOrientationEnum = DoNotRespectImageOri
entation, bool useLowQualityScale = false); | 242 void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect,
CompositeOperator, BlendMode, RespectImageOrientationEnum = DoNotRespectImageOri
entation, bool useLowQualityScale = false); |
| 243 void drawImage(SkImage*, const FloatRect& destRect, const FloatRect& srcRect
, CompositeOperator = CompositeSourceOver, BlendMode = BlendModeNormal, bool use
LowQualityScale = false); |
| 242 | 244 |
| 243 void drawTiledImage(Image*, const IntRect& destRect, const IntPoint& srcPoin
t, const IntSize& tileSize, | 245 void drawTiledImage(Image*, const IntRect& destRect, const IntPoint& srcPoin
t, const IntSize& tileSize, |
| 244 CompositeOperator = CompositeSourceOver, bool useLowQualityScale = false
, BlendMode = BlendModeNormal); | 246 CompositeOperator = CompositeSourceOver, bool useLowQualityScale = false
, BlendMode = BlendModeNormal); |
| 245 void drawTiledImage(Image*, const IntRect& destRect, const IntRect& srcRect, | 247 void drawTiledImage(Image*, const IntRect& destRect, const IntRect& srcRect, |
| 246 const FloatSize& tileScaleFactor, Image::TileRule hRule = Image::Stretch
Tile, Image::TileRule vRule = Image::StretchTile, | 248 const FloatSize& tileScaleFactor, Image::TileRule hRule = Image::Stretch
Tile, Image::TileRule vRule = Image::StretchTile, |
| 247 CompositeOperator = CompositeSourceOver, bool useLowQualityScale = false
); | 249 CompositeOperator = CompositeSourceOver, bool useLowQualityScale = false
); |
| 248 | 250 |
| 249 void drawImageBuffer(ImageBuffer*, const IntPoint&, CompositeOperator = Comp
ositeSourceOver, BlendMode = BlendModeNormal); | 251 void drawImageBuffer(ImageBuffer*, const IntPoint&, CompositeOperator = Comp
ositeSourceOver, BlendMode = BlendModeNormal); |
| 250 void drawImageBuffer(ImageBuffer*, const IntRect&, CompositeOperator = Compo
siteSourceOver, BlendMode = BlendModeNormal, bool useLowQualityScale = false); | 252 void drawImageBuffer(ImageBuffer*, const IntRect&, CompositeOperator = Compo
siteSourceOver, BlendMode = BlendModeNormal, bool useLowQualityScale = false); |
| 251 void drawImageBuffer(ImageBuffer*, const IntPoint& destPoint, const IntRect&
srcRect, CompositeOperator = CompositeSourceOver, BlendMode = BlendModeNormal); | 253 void drawImageBuffer(ImageBuffer*, const IntPoint& destPoint, const IntRect&
srcRect, CompositeOperator = CompositeSourceOver, BlendMode = BlendModeNormal); |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 // FIXME: Make this go away: crbug.com/236892 | 466 // FIXME: Make this go away: crbug.com/236892 |
| 465 bool m_updatingControlTints : 1; | 467 bool m_updatingControlTints : 1; |
| 466 bool m_accelerated : 1; | 468 bool m_accelerated : 1; |
| 467 bool m_isCertainlyOpaque : 1; | 469 bool m_isCertainlyOpaque : 1; |
| 468 bool m_printing : 1; | 470 bool m_printing : 1; |
| 469 }; | 471 }; |
| 470 | 472 |
| 471 } // namespace WebCore | 473 } // namespace WebCore |
| 472 | 474 |
| 473 #endif // GraphicsContext_h | 475 #endif // GraphicsContext_h |
| OLD | NEW |