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

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

Issue 1239193002: remove all guards for changes to drawBitmapRect / drawImageRect (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 4 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 | include/core/SkCanvas.h » ('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 /* 2 /*
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef SkBitmapDevice_DEFINED 9 #ifndef SkBitmapDevice_DEFINED
10 #define SkBitmapDevice_DEFINED 10 #define SkBitmapDevice_DEFINED
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 virtual void drawBitmap(const SkDraw&, const SkBitmap& bitmap, 75 virtual void drawBitmap(const SkDraw&, const SkBitmap& bitmap,
76 const SkMatrix& matrix, const SkPaint& paint) overri de; 76 const SkMatrix& matrix, const SkPaint& paint) overri de;
77 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap, 77 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap,
78 int x, int y, const SkPaint& paint) override; 78 int x, int y, const SkPaint& paint) override;
79 79
80 /** 80 /**
81 * The default impl. will create a bitmap-shader from the bitmap, 81 * The default impl. will create a bitmap-shader from the bitmap,
82 * and call drawRect with it. 82 * and call drawRect with it.
83 */ 83 */
84 void drawBitmapRect(const SkDraw&, const SkBitmap&, const SkRect*, const SkR ect&, 84 void drawBitmapRect(const SkDraw&, const SkBitmap&, const SkRect*, const SkR ect&,
85 const SkPaint&, SK_VIRTUAL_CONSTRAINT_TYPE) override; 85 const SkPaint&, SkCanvas::SrcRectConstraint) override;
86 86
87 /** 87 /**
88 * Does not handle text decoration. 88 * Does not handle text decoration.
89 * Decorations (underline and stike-thru) will be handled by SkCanvas. 89 * Decorations (underline and stike-thru) will be handled by SkCanvas.
90 */ 90 */
91 virtual void drawText(const SkDraw&, const void* text, size_t len, 91 virtual void drawText(const SkDraw&, const void* text, size_t len,
92 SkScalar x, SkScalar y, const SkPaint& paint) override ; 92 SkScalar x, SkScalar y, const SkPaint& paint) override ;
93 virtual void drawPosText(const SkDraw&, const void* text, size_t len, 93 virtual void drawPosText(const SkDraw&, const void* text, size_t len,
94 const SkScalar pos[], int scalarsPerPos, 94 const SkScalar pos[], int scalarsPerPos,
95 const SkPoint& offset, const SkPaint& paint) overri de; 95 const SkPoint& offset, const SkPaint& paint) overri de;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 SkImageFilter::Cache* getImageFilterCache() override; 144 SkImageFilter::Cache* getImageFilterCache() override;
145 145
146 SkBitmap fBitmap; 146 SkBitmap fBitmap;
147 147
148 void setNewSize(const SkISize&); // Used by SkCanvas for resetForNextPictur e(). 148 void setNewSize(const SkISize&); // Used by SkCanvas for resetForNextPictur e().
149 149
150 typedef SkBaseDevice INHERITED; 150 typedef SkBaseDevice INHERITED;
151 }; 151 };
152 152
153 #endif // SkBitmapDevice_DEFINED 153 #endif // SkBitmapDevice_DEFINED
OLDNEW
« no previous file with comments | « no previous file | include/core/SkCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698