Home | History | Annotate | Download | only in core

Lines Matching refs:SkCanvas

10 #include "SkCanvas.h"
123 void SkCanvas::predrawNotify() {
145 DeviceCM(SkBaseDevice* device, int x, int y, const SkPaint* paint, SkCanvas* canvas)
213 class SkCanvas::MCRec {
232 if (flags & SkCanvas::kMatrix_SaveFlag) {
239 if (flags & SkCanvas::kClip_SaveFlag) {
276 SkDrawIter(SkCanvas* canvas, bool skipEmptyClips = true) {
325 SkCanvas* fCanvas;
337 AutoDrawLooper(SkCanvas* canvas, const SkPaint& paint,
352 SkCanvas::kARGB_ClipLayer_SaveFlag, true);
393 SkCanvas* fCanvas;
485 SkBaseDevice* SkCanvas::init(SkBaseDevice* device) {
507 SkCanvas::SkCanvas()
514 SkCanvas::SkCanvas(SkBaseDevice* device)
521 SkCanvas::SkCanvas(const SkBitmap& bitmap)
528 SkCanvas::~SkCanvas() {
541 SkBounder* SkCanvas::setBounder(SkBounder* bounder) {
546 SkDrawFilter* SkCanvas::getDrawFilter() const {
550 SkDrawFilter* SkCanvas::setDrawFilter(SkDrawFilter* filter) {
555 SkMetaData& SkCanvas::getMetaData() {
566 void SkCanvas::flush() {
573 SkISize SkCanvas::getDeviceSize() const {
578 SkBaseDevice* SkCanvas::getDevice() const {
585 SkBaseDevice* SkCanvas::getTopDevice(bool updateMatrixClip) const {
587 const_cast<SkCanvas*>(this)->updateDeviceCMCache();
592 SkBaseDevice* SkCanvas::setDevice(SkBaseDevice* device) {
644 bool SkCanvas::readPixels(SkBitmap* bitmap,
654 bool SkCanvas::readPixels(const SkIRect& srcRect, SkBitmap* bitmap) {
677 void SkCanvas::writePixels(const SkBitmap& bitmap, int x, int y,
689 SkCanvas* SkCanvas::canvasForDrawIter() {
695 void SkCanvas::updateDeviceCMCache() {
715 int SkCanvas::internalSave(SaveFlags flags) {
724 if (SkCanvas::kClip_SaveFlag & flags) {
731 int SkCanvas::save(SaveFlags flags) {
740 static SkBitmap::Config resolve_config(SkCanvas* canvas,
742 SkCanvas::SaveFlags flags,
744 *isOpaque = (flags & SkCanvas::kHasAlphaLayer_SaveFlag) == 0;
757 if (flags & (SkCanvas::kFullColorLayer_SaveFlag |
758 SkCanvas::kHasAlphaLayer_SaveFlag))
776 static bool bounds_affects_clip(SkCanvas::SaveFlags flags) {
777 return (flags & SkCanvas::kClipToLayer_SaveFlag) != 0;
780 bool SkCanvas::clipRectBounds(const SkRect* bounds, SaveFlags flags,
817 int SkCanvas::saveLayer(const SkRect* bounds, const SkPaint* paint,
822 int SkCanvas::internalSaveLayer(const SkRect* bounds, const SkPaint* paint,
877 int SkCanvas::saveLayerAlpha(const SkRect* bounds, U8CPU alpha,
888 void SkCanvas::restore() {
895 void SkCanvas::internalRestore() {
901 if (SkCanvas::kClip_SaveFlag & fMCRec->fFlags) {
934 int SkCanvas::getSaveCount() const {
938 void SkCanvas::restoreToCount(int count) {
950 bool SkCanvas::isDrawingToLayer() const {
961 void SkCanvas::internalDrawBitmap(const SkBitmap& bitmap,
984 void SkCanvas::internalDrawDevice(SkBaseDevice* srcDev, int x, int y,
1016 void SkCanvas::drawSprite(const SkBitmap& bitmap, int x, int y,
1056 bool SkCanvas::translate(SkScalar dx, SkScalar dy) {
1062 bool SkCanvas::scale(SkScalar sx, SkScalar sy) {
1068 bool SkCanvas::rotate(SkScalar degrees) {
1074 bool SkCanvas::skew(SkScalar sx, SkScalar sy) {
1080 bool SkCanvas::concat(const SkMatrix& matrix) {
1086 void SkCanvas::setMatrix(const SkMatrix& matrix) {
1094 void SkCanvas::resetMatrix() {
1103 bool SkCanvas::clipRect(const SkRect& rect, SkRegion::Op op, bool doAA) {
1144 return this->SkCanvas::clipPath(path, op, doAA);
1148 static bool clipPathHelper(const SkCanvas* canvas, SkRasterClip* currClip,
1187 bool SkCanvas::clipRRect(const SkRRect& rrect, SkRegion::Op op, bool doAA) {
1190 return this->SkCanvas::clipRect(rrect.getBounds(), op, doAA);
1195 return this->SkCanvas::clipPath(path, op, doAA);
1199 bool SkCanvas::clipPath(const SkPath& path, SkRegion::Op op, bool doAA) {
1274 bool SkCanvas::updateClipConservativelyUsingBounds(const SkRect& bounds, SkRegion::Op op,
1290 // SkCanvas:: to be sure to call the base-class.
1311 this->SkCanvas::save(SkCanvas::kMatrix_SaveFlag);
1313 this->SkCanvas::setMatrix(SkMatrix::I());
1314 bool result = this->SkCanvas::clipRect(deviceBounds,
1316 this->SkCanvas::restore(); //pop the matrix, but keep the clip
1328 return this->SkCanvas::clipRect(bounds, op, false);
1336 return this->SkCanvas::clipRect(bounds, SkRegion::kReplace_Op, false);
1340 return this->SkCanvas::clipRect(bounds, SkRegion::kUnion_Op, false);
1348 bool SkCanvas::clipRegion(const SkRegion& rgn, SkRegion::Op op) {
1362 void SkCanvas::validateClip() const {
1403 void SkCanvas::replayClips(ClipVisitor* visitor) const {
1425 bool SkCanvas::quickReject(const SkRect& rect) const {
1455 bool SkCanvas::quickReject(const SkPath& path) const {
1470 bool SkCanvas::getClipBounds(SkRect* bounds) const {
1504 bool SkCanvas::getClipDeviceBounds(SkIRect* bounds) const {
1519 const SkMatrix& SkCanvas::getTotalMatrix() const {
1523 SkCanvas::ClipType SkCanvas::getClipType() const {
1529 const SkRegion& SkCanvas::getTotalClip() const {
1533 SkBaseDevice* SkCanvas::createLayerDevice(SkBitmap::Config config,
1545 SkBaseDevice* SkCanvas::createCompatibleDevice(SkBitmap::Config config,
1556 GrContext* SkCanvas::getGrContext() {
1575 void SkCanvas::clear(SkColor color) {
1583 void SkCanvas::drawPaint(const SkPaint& paint) {
1587 void SkCanvas::internalDrawPaint(const SkPaint& paint) {
1599 void SkCanvas::drawPoints(PointMode mode, size_t count, const SkPoint pts[],
1632 void SkCanvas::drawRect(const SkRect& r, const SkPaint& paint) {
1651 void SkCanvas::drawOval(const SkRect& oval, const SkPaint& paint) {
1670 void SkCanvas::drawRRect(const SkRRect& rrect, const SkPaint& paint) {
1682 this->SkCanvas::drawRect(rrect.getBounds(), paint);
1686 this->SkCanvas::drawOval(rrect.getBounds(), paint);
1700 void SkCanvas::drawPath(const SkPath& path, const SkPaint& paint) {
1730 void SkCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y,
1754 void SkCanvas::internalDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src,
1788 void SkCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src,
1795 void SkCanvas::drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& matrix,
1801 void SkCanvas::internalDrawBitmapNine(const SkBitmap& bitmap,
1868 void SkCanvas::drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center,
1897 void SkCanvas::DrawRect(const SkDraw& draw, const SkPaint& paint,
1908 void SkCanvas::DrawTextDecorations(const SkDraw& draw, const SkPaint& paint,
1969 void SkCanvas::drawText(const void* text, size_t byteLength,
1985 void SkCanvas::drawPosText(const void* text, size_t byteLength,
2000 void SkCanvas::drawPosTextH(const void* text, size_t byteLength,
2016 void SkCanvas::drawTextOnPath(const void* text, size_t byteLength,
2031 void SkCanvas::drawVertices(VertexMode vmode, int vertexCount,
2054 void SkCanvas::drawARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b,
2065 void SkCanvas::drawColor(SkColor c, SkXfermode::Mode mode) {
2075 void SkCanvas::drawPoint(SkScalar x, SkScalar y, const SkPaint& paint) {
2082 void SkCanvas::drawPoint(SkScalar x, SkScalar y, SkColor color) {
2091 void SkCanvas::drawLine(SkScalar x0, SkScalar y0, SkScalar x1, SkScalar y1,
2100 void SkCanvas::drawRectCoords(SkScalar left, SkScalar top,
2109 void SkCanvas::drawCircle(SkScalar cx, SkScalar cy, SkScalar radius,
2120 void SkCanvas::drawRoundRect(const SkRect& r, SkScalar rx, SkScalar ry,
2137 void SkCanvas::drawArc(const SkRect& oval, SkScalar startAngle,
2155 void SkCanvas::drawTextOnPathHV(const void* text, size_t byteLength,
2166 void SkCanvas::drawPicture(SkPicture& picture) {
2173 SkCanvas::LayerIter::LayerIter(SkCanvas* canvas, bool skipEmptyClips) {
2182 SkCanvas::LayerIter::~LayerIter() {
2186 void SkCanvas::LayerIter::next() {
2190 SkBaseDevice* SkCanvas::LayerIter::device() const {
2194 const SkMatrix& SkCanvas::LayerIter::matrix() const {
2198 const SkPaint& SkCanvas::LayerIter::paint() const {
2206 const SkRegion& SkCanvas::LayerIter::clip() const { return fImpl->getClip(); }
2207 int SkCanvas::LayerIter::x() const { return fImpl->getX(); }
2208 int SkCanvas::LayerIter::y() const { return fImpl->getY(); }
2212 SkCanvas::ClipVisitor::~ClipVisitor() { }