| 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 const FloatSize& tileScaleFactor, Image::TileRule hRule = Image::Stretch
Tile, Image::TileRule vRule = Image::StretchTile, | 278 const FloatSize& tileScaleFactor, Image::TileRule hRule = Image::Stretch
Tile, Image::TileRule vRule = Image::StretchTile, |
| 279 CompositeOperator = CompositeSourceOver); | 279 CompositeOperator = CompositeSourceOver); |
| 280 | 280 |
| 281 void drawImageBuffer(ImageBuffer*, const FloatRect& destRect, const FloatRec
t* srcRect = 0, CompositeOperator = CompositeSourceOver, WebBlendMode = WebBlend
ModeNormal); | 281 void drawImageBuffer(ImageBuffer*, const FloatRect& destRect, const FloatRec
t* srcRect = 0, CompositeOperator = CompositeSourceOver, WebBlendMode = WebBlend
ModeNormal); |
| 282 | 282 |
| 283 void drawPicture(PassRefPtr<SkPicture>, const FloatRect& dest, const FloatRe
ct& src, CompositeOperator, WebBlendMode); | 283 void drawPicture(PassRefPtr<SkPicture>, const FloatRect& dest, const FloatRe
ct& src, CompositeOperator, WebBlendMode); |
| 284 | 284 |
| 285 // These methods write to the canvas and modify the opaque region, if tracke
d. | 285 // These methods write to the canvas and modify the opaque region, if tracke
d. |
| 286 // Also drawLine(const IntPoint& point1, const IntPoint& point2) and fillRou
ndedRect | 286 // Also drawLine(const IntPoint& point1, const IntPoint& point2) and fillRou
ndedRect |
| 287 void writePixels(const SkImageInfo&, const void* pixels, size_t rowBytes, in
t x, int y); | 287 void writePixels(const SkImageInfo&, const void* pixels, size_t rowBytes, in
t x, int y); |
| 288 void writePixels(const SkBitmap&, int x, int y); | |
| 289 void drawBitmap(const SkBitmap&, SkScalar, SkScalar, const SkPaint* = 0); | 288 void drawBitmap(const SkBitmap&, SkScalar, SkScalar, const SkPaint* = 0); |
| 290 void drawBitmapRect(const SkBitmap&, const SkRect*, const SkRect&, const SkP
aint* = 0); | 289 void drawBitmapRect(const SkBitmap&, const SkRect*, const SkRect&, const SkP
aint* = 0); |
| 291 void drawOval(const SkRect&, const SkPaint&); | 290 void drawOval(const SkRect&, const SkPaint&); |
| 292 void drawPath(const SkPath&, const SkPaint&); | 291 void drawPath(const SkPath&, const SkPaint&); |
| 293 // After drawing directly to the context's canvas, use this function to noti
fy the context so | 292 // After drawing directly to the context's canvas, use this function to noti
fy the context so |
| 294 // it can track the opaque region. | 293 // it can track the opaque region. |
| 295 // FIXME: this is still needed only because ImageSkia::paintSkBitmap() may n
eed to notify for a | 294 // FIXME: this is still needed only because ImageSkia::paintSkBitmap() may n
eed to notify for a |
| 296 // smaller rect than the one drawn to, due to its clipping logic. | 295 // smaller rect than the one drawn to, due to its clipping logic. |
| 297 void didDrawRect(const SkRect&, const SkPaint&, const SkBitmap* = 0); | 296 void didDrawRect(const SkRect&, const SkPaint&, const SkBitmap* = 0); |
| 298 void drawRect(const SkRect&, const SkPaint&); | 297 void drawRect(const SkRect&, const SkPaint&); |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 bool m_accelerated : 1; | 512 bool m_accelerated : 1; |
| 514 bool m_isCertainlyOpaque : 1; | 513 bool m_isCertainlyOpaque : 1; |
| 515 bool m_printing : 1; | 514 bool m_printing : 1; |
| 516 bool m_antialiasHairlineImages : 1; | 515 bool m_antialiasHairlineImages : 1; |
| 517 bool m_shouldSmoothFonts : 1; | 516 bool m_shouldSmoothFonts : 1; |
| 518 }; | 517 }; |
| 519 | 518 |
| 520 } // namespace blink | 519 } // namespace blink |
| 521 | 520 |
| 522 #endif // GraphicsContext_h | 521 #endif // GraphicsContext_h |
| OLD | NEW |