| 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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 | 277 |
| 278 void drawImageBuffer(ImageBuffer*, const FloatRect& destRect, const FloatRec
t* srcRect = 0, CompositeOperator = CompositeSourceOver, WebBlendMode = WebBlend
ModeNormal); | 278 void drawImageBuffer(ImageBuffer*, const FloatRect& destRect, const FloatRec
t* srcRect = 0, CompositeOperator = CompositeSourceOver, WebBlendMode = WebBlend
ModeNormal); |
| 279 | 279 |
| 280 // These methods write to the canvas and modify the opaque region, if tracke
d. | 280 // These methods write to the canvas and modify the opaque region, if tracke
d. |
| 281 // Also drawLine(const IntPoint& point1, const IntPoint& point2) and fillRou
ndedRect | 281 // Also drawLine(const IntPoint& point1, const IntPoint& point2) and fillRou
ndedRect |
| 282 void writePixels(const SkImageInfo&, const void* pixels, size_t rowBytes, in
t x, int y); | 282 void writePixels(const SkImageInfo&, const void* pixels, size_t rowBytes, in
t x, int y); |
| 283 void drawBitmap(const SkBitmap&, SkScalar, SkScalar, const SkPaint* = 0); | 283 void drawBitmap(const SkBitmap&, SkScalar, SkScalar, const SkPaint* = 0); |
| 284 void drawBitmapRect(const SkBitmap&, const SkRect*, const SkRect&, const SkP
aint* = 0); | 284 void drawBitmapRect(const SkBitmap&, const SkRect*, const SkRect&, const SkP
aint* = 0); |
| 285 void drawOval(const SkRect&, const SkPaint&); | 285 void drawOval(const SkRect&, const SkPaint&); |
| 286 void drawPath(const SkPath&, const SkPaint&); | 286 void drawPath(const SkPath&, const SkPaint&); |
| 287 // After drawing directly to the context's canvas, use this function to noti
fy the context so | |
| 288 // it can track the opaque region. | |
| 289 // FIXME: this is still needed only because ImageSkia::paintSkBitmap() may n
eed to notify for a | |
| 290 // smaller rect than the one drawn to, due to its clipping logic. | |
| 291 void didDrawRect(const SkRect&, const SkPaint&, const SkBitmap* = 0); | |
| 292 void drawRect(const SkRect&, const SkPaint&); | 287 void drawRect(const SkRect&, const SkPaint&); |
| 293 void drawPosText(const void* text, size_t byteLength, const SkPoint pos[], c
onst SkRect& textRect, const SkPaint&); | 288 void drawPosText(const void* text, size_t byteLength, const SkPoint pos[], c
onst SkRect& textRect, const SkPaint&); |
| 294 void drawPosTextH(const void* text, size_t byteLength, const SkScalar xpos[]
, SkScalar constY, const SkRect& textRect, const SkPaint&); | 289 void drawPosTextH(const void* text, size_t byteLength, const SkScalar xpos[]
, SkScalar constY, const SkRect& textRect, const SkPaint&); |
| 295 void drawTextBlob(const SkTextBlob*, const SkPoint& origin, const SkPaint&); | 290 void drawTextBlob(const SkTextBlob*, const SkPoint& origin, const SkPaint&); |
| 296 | 291 |
| 297 void clip(const IntRect& rect) { clipRect(rect); } | 292 void clip(const IntRect& rect) { clipRect(rect); } |
| 298 void clip(const FloatRect& rect) { clipRect(rect); } | 293 void clip(const FloatRect& rect) { clipRect(rect); } |
| 299 void clipRoundedRect(const RoundedRect&, SkRegion::Op = SkRegion::kIntersect
_Op); | 294 void clipRoundedRect(const RoundedRect&, SkRegion::Op = SkRegion::kIntersect
_Op); |
| 300 void clipOut(const IntRect& rect) { clipRect(rect, NotAntiAliased, SkRegion:
:kDifference_Op); } | 295 void clipOut(const IntRect& rect) { clipRect(rect, NotAntiAliased, SkRegion:
:kDifference_Op); } |
| 301 void clipOut(const Path&); | 296 void clipOut(const Path&); |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 unsigned m_accelerated : 1; | 509 unsigned m_accelerated : 1; |
| 515 unsigned m_isCertainlyOpaque : 1; | 510 unsigned m_isCertainlyOpaque : 1; |
| 516 unsigned m_printing : 1; | 511 unsigned m_printing : 1; |
| 517 unsigned m_antialiasHairlineImages : 1; | 512 unsigned m_antialiasHairlineImages : 1; |
| 518 unsigned m_shouldSmoothFonts : 1; | 513 unsigned m_shouldSmoothFonts : 1; |
| 519 }; | 514 }; |
| 520 | 515 |
| 521 } // namespace blink | 516 } // namespace blink |
| 522 | 517 |
| 523 #endif // GraphicsContext_h | 518 #endif // GraphicsContext_h |
| OLD | NEW |