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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 void drawImage(Image*, const FloatRect& destRect); | 286 void drawImage(Image*, const FloatRect& destRect); |
287 void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect,
CompositeOperator = CompositeSourceOver, RespectImageOrientationEnum = DoNotResp
ectImageOrientation); | 287 void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect,
CompositeOperator = CompositeSourceOver, RespectImageOrientationEnum = DoNotResp
ectImageOrientation); |
288 void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect,
CompositeOperator, blink::WebBlendMode, RespectImageOrientationEnum = DoNotRespe
ctImageOrientation); | 288 void drawImage(Image*, const FloatRect& destRect, const FloatRect& srcRect,
CompositeOperator, blink::WebBlendMode, RespectImageOrientationEnum = DoNotRespe
ctImageOrientation); |
289 | 289 |
290 void drawTiledImage(Image*, const IntRect& destRect, const IntPoint& srcPoin
t, const IntSize& tileSize, | 290 void drawTiledImage(Image*, const IntRect& destRect, const IntPoint& srcPoin
t, const IntSize& tileSize, |
291 CompositeOperator = CompositeSourceOver, blink::WebBlendMode = blink::We
bBlendModeNormal, const IntSize& repeatSpacing = IntSize()); | 291 CompositeOperator = CompositeSourceOver, blink::WebBlendMode = blink::We
bBlendModeNormal, const IntSize& repeatSpacing = IntSize()); |
292 void drawTiledImage(Image*, const IntRect& destRect, const IntRect& srcRect, | 292 void drawTiledImage(Image*, const IntRect& destRect, const IntRect& srcRect, |
293 const FloatSize& tileScaleFactor, Image::TileRule hRule = Image::Stretch
Tile, Image::TileRule vRule = Image::StretchTile, | 293 const FloatSize& tileScaleFactor, Image::TileRule hRule = Image::Stretch
Tile, Image::TileRule vRule = Image::StretchTile, |
294 CompositeOperator = CompositeSourceOver); | 294 CompositeOperator = CompositeSourceOver); |
295 | 295 |
296 void drawImageBuffer(ImageBuffer*, const FloatRect& destRect, const FloatRec
t* srcRect = 0, CompositeOperator = CompositeSourceOver); | 296 void drawImageBuffer(ImageBuffer*, const FloatRect& destRect, const FloatRec
t* srcRect = 0, CompositeOperator = CompositeSourceOver, WebBlendMode = WebBlend
ModeNormal); |
297 | 297 |
298 void drawPicture(PassRefPtr<SkPicture>, const FloatRect& dest, const FloatRe
ct& src, CompositeOperator, blink::WebBlendMode); | 298 void drawPicture(PassRefPtr<SkPicture>, const FloatRect& dest, const FloatRe
ct& src, CompositeOperator, blink::WebBlendMode); |
299 | 299 |
300 // These methods write to the canvas and modify the opaque region, if tracke
d. | 300 // These methods write to the canvas and modify the opaque region, if tracke
d. |
301 // Also drawLine(const IntPoint& point1, const IntPoint& point2) and fillRou
ndedRect | 301 // Also drawLine(const IntPoint& point1, const IntPoint& point2) and fillRou
ndedRect |
302 void writePixels(const SkImageInfo&, const void* pixels, size_t rowBytes, in
t x, int y); | 302 void writePixels(const SkImageInfo&, const void* pixels, size_t rowBytes, in
t x, int y); |
303 void writePixels(const SkBitmap&, int x, int y); | 303 void writePixels(const SkBitmap&, int x, int y); |
304 void drawBitmap(const SkBitmap&, SkScalar, SkScalar, const SkPaint* = 0); | 304 void drawBitmap(const SkBitmap&, SkScalar, SkScalar, const SkPaint* = 0); |
305 void drawBitmapRect(const SkBitmap&, const SkRect*, const SkRect&, const SkP
aint* = 0); | 305 void drawBitmapRect(const SkBitmap&, const SkRect*, const SkRect&, const SkP
aint* = 0); |
306 void drawOval(const SkRect&, const SkPaint&); | 306 void drawOval(const SkRect&, const SkPaint&); |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 bool m_updatingControlTints : 1; | 529 bool m_updatingControlTints : 1; |
530 bool m_accelerated : 1; | 530 bool m_accelerated : 1; |
531 bool m_isCertainlyOpaque : 1; | 531 bool m_isCertainlyOpaque : 1; |
532 bool m_printing : 1; | 532 bool m_printing : 1; |
533 bool m_antialiasHairlineImages : 1; | 533 bool m_antialiasHairlineImages : 1; |
534 }; | 534 }; |
535 | 535 |
536 } // namespace blink | 536 } // namespace blink |
537 | 537 |
538 #endif // GraphicsContext_h | 538 #endif // GraphicsContext_h |
OLD | NEW |