Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(671)

Side by Side Diff: include/core/SkCanvas.h

Issue 1391333004: remove internalDrawBitmap (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/core/SkCanvas.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkCanvas_DEFINED 8 #ifndef SkCanvas_DEFINED
9 #define SkCanvas_DEFINED 9 #define SkCanvas_DEFINED
10 10
(...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after
1395 1395
1396 SkBaseDevice* init(SkBaseDevice*, InitFlags); 1396 SkBaseDevice* init(SkBaseDevice*, InitFlags);
1397 1397
1398 /** 1398 /**
1399 * Gets the size/origin of the top level layer in global canvas coordinates. We don't want this 1399 * Gets the size/origin of the top level layer in global canvas coordinates. We don't want this
1400 * to be public because it exposes decisions about layer sizes that are inte rnal to the canvas. 1400 * to be public because it exposes decisions about layer sizes that are inte rnal to the canvas.
1401 */ 1401 */
1402 SkISize getTopLayerSize() const; 1402 SkISize getTopLayerSize() const;
1403 SkIPoint getTopLayerOrigin() const; 1403 SkIPoint getTopLayerOrigin() const;
1404 1404
1405 // internal methods are not virtual, so they can safely be called by other
1406 // canvas apis, without confusing subclasses (like SkPictureRecording)
1407 void internalDrawBitmap(const SkBitmap&, const SkMatrix& m, const SkPaint* p aint);
1408 void internalDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src, 1405 void internalDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src,
1409 const SkRect& dst, const SkPaint* paint, 1406 const SkRect& dst, const SkPaint* paint,
1410 SrcRectConstraint); 1407 SrcRectConstraint);
1411 void internalDrawPaint(const SkPaint& paint); 1408 void internalDrawPaint(const SkPaint& paint);
1412 void internalSaveLayer(const SkRect* bounds, const SkPaint*, SaveFlags, Save LayerStrategy); 1409 void internalSaveLayer(const SkRect* bounds, const SkPaint*, SaveFlags, Save LayerStrategy);
1413 void internalDrawDevice(SkBaseDevice*, int x, int y, const SkPaint*, bool is BitmapDevice); 1410 void internalDrawDevice(SkBaseDevice*, int x, int y, const SkPaint*, bool is BitmapDevice);
1414 1411
1415 // shared by save() and saveLayer() 1412 // shared by save() and saveLayer()
1416 void internalSave(); 1413 void internalSave();
1417 void internalRestore(); 1414 void internalRestore();
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
1564 1561
1565 class SkCanvasClipVisitor { 1562 class SkCanvasClipVisitor {
1566 public: 1563 public:
1567 virtual ~SkCanvasClipVisitor(); 1564 virtual ~SkCanvasClipVisitor();
1568 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; 1565 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0;
1569 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; 1566 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0;
1570 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; 1567 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0;
1571 }; 1568 };
1572 1569
1573 #endif 1570 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698