| 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 | 237 |
| 238 void strokeRect(const FloatRect&, float lineWidth); | 238 void strokeRect(const FloatRect&, float lineWidth); |
| 239 | 239 |
| 240 void fillBetweenRoundedRects(const IntRect&, const IntSize& outerTopLeft, co
nst IntSize& outerTopRight, const IntSize& outerBottomLeft, const IntSize& outer
BottomRight, | 240 void fillBetweenRoundedRects(const IntRect&, const IntSize& outerTopLeft, co
nst IntSize& outerTopRight, const IntSize& outerBottomLeft, const IntSize& outer
BottomRight, |
| 241 const IntRect&, const IntSize& innerTopLeft, const IntSize& innerTopRigh
t, const IntSize& innerBottomLeft, const IntSize& innerBottomRight, const Color&
); | 241 const IntRect&, const IntSize& innerTopLeft, const IntSize& innerTopRigh
t, const IntSize& innerBottomLeft, const IntSize& innerBottomRight, const Color&
); |
| 242 void fillBetweenRoundedRects(const RoundedRect&, const RoundedRect&, const C
olor&); | 242 void fillBetweenRoundedRects(const RoundedRect&, const RoundedRect&, const C
olor&); |
| 243 | 243 |
| 244 void drawDisplayList(DisplayList*); | 244 void drawDisplayList(DisplayList*); |
| 245 | 245 |
| 246 void drawImage(Image*, const IntPoint&, CompositeOperator = CompositeSourceO
ver, RespectImageOrientationEnum = DoNotRespectImageOrientation); | 246 void drawImage(Image*, const IntPoint&, CompositeOperator = CompositeSourceO
ver, RespectImageOrientationEnum = DoNotRespectImageOrientation); |
| 247 void drawImage(Image*, const IntRect&, CompositeOperator = CompositeSourceOv
er, RespectImageOrientationEnum = DoNotRespectImageOrientation, bool useLowQuali
tyScale = false); | 247 void drawImage(Image*, const IntRect&, CompositeOperator = CompositeSourceOv
er, RespectImageOrientationEnum = DoNotRespectImageOrientation, InterpolationQua
lity = InterpolationDefault); |
| 248 void drawImage(Image*, const FloatRect& destRect); | 248 void drawImage(Image*, const FloatRect& destRect); |
| 249 void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect,
CompositeOperator = CompositeSourceOver, RespectImageOrientationEnum = DoNotResp
ectImageOrientation, bool useLowQualityScale = false); | 249 void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect,
CompositeOperator = CompositeSourceOver, RespectImageOrientationEnum = DoNotResp
ectImageOrientation, InterpolationQuality = InterpolationDefault); |
| 250 void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect,
CompositeOperator, blink::WebBlendMode, RespectImageOrientationEnum = DoNotRespe
ctImageOrientation, bool useLowQualityScale = false); | 250 void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect,
CompositeOperator, blink::WebBlendMode, RespectImageOrientationEnum = DoNotRespe
ctImageOrientation, InterpolationQuality = InterpolationDefault); |
| 251 | 251 |
| 252 void drawTiledImage(Image*, const IntRect& destRect, const IntPoint& srcPoin
t, const IntSize& tileSize, | 252 void drawTiledImage(Image*, const IntRect& destRect, const IntPoint& srcPoin
t, const IntSize& tileSize, |
| 253 CompositeOperator = CompositeSourceOver, bool useLowQualityScale = false
, blink::WebBlendMode = blink::WebBlendModeNormal, const IntSize& repeatSpacing
= IntSize()); | 253 CompositeOperator = CompositeSourceOver, InterpolationQuality = Interpol
ationDefault, blink::WebBlendMode = blink::WebBlendModeNormal, const IntSize& re
peatSpacing = IntSize()); |
| 254 void drawTiledImage(Image*, const IntRect& destRect, const IntRect& srcRect, | 254 void drawTiledImage(Image*, const IntRect& destRect, const IntRect& srcRect, |
| 255 const FloatSize& tileScaleFactor, Image::TileRule hRule = Image::Stretch
Tile, Image::TileRule vRule = Image::StretchTile, | 255 const FloatSize& tileScaleFactor, Image::TileRule hRule = Image::Stretch
Tile, Image::TileRule vRule = Image::StretchTile, |
| 256 CompositeOperator = CompositeSourceOver, bool useLowQualityScale = false
); | 256 CompositeOperator = CompositeSourceOver, InterpolationQuality = Interpol
ationDefault); |
| 257 | 257 |
| 258 void drawImageBuffer(ImageBuffer*, const IntPoint&, CompositeOperator = Comp
ositeSourceOver, blink::WebBlendMode = blink::WebBlendModeNormal); | 258 void drawImageBuffer(ImageBuffer*, const IntPoint&, CompositeOperator = Comp
ositeSourceOver, blink::WebBlendMode = blink::WebBlendModeNormal); |
| 259 void drawImageBuffer(ImageBuffer*, const IntRect&, CompositeOperator = Compo
siteSourceOver, blink::WebBlendMode = blink::WebBlendModeNormal, bool useLowQual
ityScale = false); | 259 void drawImageBuffer(ImageBuffer*, const IntRect&, CompositeOperator = Compo
siteSourceOver, blink::WebBlendMode = blink::WebBlendModeNormal, InterpolationQu
ality = InterpolationDefault); |
| 260 void drawImageBuffer(ImageBuffer*, const IntPoint& destPoint, const IntRect&
srcRect, CompositeOperator = CompositeSourceOver, blink::WebBlendMode = blink::
WebBlendModeNormal); | 260 void drawImageBuffer(ImageBuffer*, const IntPoint& destPoint, const IntRect&
srcRect, CompositeOperator = CompositeSourceOver, blink::WebBlendMode = blink::
WebBlendModeNormal); |
| 261 void drawImageBuffer(ImageBuffer*, const IntRect& destRect, const IntRect& s
rcRect, CompositeOperator = CompositeSourceOver, blink::WebBlendMode = blink::We
bBlendModeNormal, bool useLowQualityScale = false); | 261 void drawImageBuffer(ImageBuffer*, const IntRect& destRect, const IntRect& s
rcRect, CompositeOperator = CompositeSourceOver, blink::WebBlendMode = blink::We
bBlendModeNormal, InterpolationQuality = InterpolationDefault); |
| 262 void drawImageBuffer(ImageBuffer*, const FloatRect& destRect); | 262 void drawImageBuffer(ImageBuffer*, const FloatRect& destRect); |
| 263 void drawImageBuffer(ImageBuffer*, const FloatRect& destRect, const FloatRec
t& srcRect, CompositeOperator = CompositeSourceOver, blink::WebBlendMode = blink
::WebBlendModeNormal, bool useLowQualityScale = false); | 263 void drawImageBuffer(ImageBuffer*, const FloatRect& destRect, const FloatRec
t& srcRect, CompositeOperator = CompositeSourceOver, blink::WebBlendMode = blink
::WebBlendModeNormal, InterpolationQuality = InterpolationDefault); |
| 264 | 264 |
| 265 // These methods write to the canvas and modify the opaque region, if tracke
d. | 265 // These methods write to the canvas and modify the opaque region, if tracke
d. |
| 266 // Also drawLine(const IntPoint& point1, const IntPoint& point2) and fillRou
ndedRect | 266 // Also drawLine(const IntPoint& point1, const IntPoint& point2) and fillRou
ndedRect |
| 267 void writePixels(const SkImageInfo&, const void* pixels, size_t rowBytes, in
t x, int y); | 267 void writePixels(const SkImageInfo&, const void* pixels, size_t rowBytes, in
t x, int y); |
| 268 void writePixels(const SkBitmap&, int x, int y); | 268 void writePixels(const SkBitmap&, int x, int y); |
| 269 void drawBitmap(const SkBitmap&, SkScalar, SkScalar, const SkPaint* = 0); | 269 void drawBitmap(const SkBitmap&, SkScalar, SkScalar, const SkPaint* = 0); |
| 270 void drawBitmapRect(const SkBitmap&, const SkRect*, const SkRect&, const SkP
aint* = 0); | 270 void drawBitmapRect(const SkBitmap&, const SkRect*, const SkRect&, const SkP
aint* = 0); |
| 271 void drawOval(const SkRect&, const SkPaint&); | 271 void drawOval(const SkRect&, const SkPaint&); |
| 272 void drawPath(const SkPath&, const SkPaint&); | 272 void drawPath(const SkPath&, const SkPaint&); |
| 273 // After drawing directly to the context's canvas, use this function to noti
fy the context so | 273 // After drawing directly to the context's canvas, use this function to noti
fy the context so |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 // FIXME: Make this go away: crbug.com/236892 | 501 // FIXME: Make this go away: crbug.com/236892 |
| 502 bool m_updatingControlTints : 1; | 502 bool m_updatingControlTints : 1; |
| 503 bool m_accelerated : 1; | 503 bool m_accelerated : 1; |
| 504 bool m_isCertainlyOpaque : 1; | 504 bool m_isCertainlyOpaque : 1; |
| 505 bool m_printing : 1; | 505 bool m_printing : 1; |
| 506 }; | 506 }; |
| 507 | 507 |
| 508 } // namespace WebCore | 508 } // namespace WebCore |
| 509 | 509 |
| 510 #endif // GraphicsContext_h | 510 #endif // GraphicsContext_h |
| OLD | NEW |