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

Side by Side Diff: src/core/SkRecorder.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 | « src/core/SkPictureRecord.cpp ('k') | src/core/SkRecorder.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 2014 Google Inc. 2 * Copyright 2014 Google Inc.
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 SkRecorder_DEFINED 8 #ifndef SkRecorder_DEFINED
9 #define SkRecorder_DEFINED 9 #define SkRecorder_DEFINED
10 10
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 const SkPaint& paint) override; 91 const SkPaint& paint) override;
92 92
93 void onDrawPaint(const SkPaint&) override; 93 void onDrawPaint(const SkPaint&) override;
94 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain t&) override; 94 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain t&) override;
95 void onDrawRect(const SkRect&, const SkPaint&) override; 95 void onDrawRect(const SkRect&, const SkPaint&) override;
96 void onDrawOval(const SkRect&, const SkPaint&) override; 96 void onDrawOval(const SkRect&, const SkPaint&) override;
97 void onDrawRRect(const SkRRect&, const SkPaint&) override; 97 void onDrawRRect(const SkRRect&, const SkPaint&) override;
98 void onDrawPath(const SkPath&, const SkPaint&) override; 98 void onDrawPath(const SkPath&, const SkPaint&) override;
99 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) override; 99 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) override;
100 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*, 100 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*,
101 SK_VIRTUAL_CONSTRAINT_TYPE) override; 101 SrcRectConstraint) override;
102 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint* ) override; 102 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint* ) override;
103 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, 103 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst,
104 const SkPaint* SRC_RECT_CONSTRAINT_PARAM(constraint)) o verride; 104 const SkPaint*, SrcRectConstraint) override;
105 void onDrawImageNine(const SkImage*, const SkIRect& center, const SkRect& ds t, 105 void onDrawImageNine(const SkImage*, const SkIRect& center, const SkRect& ds t,
106 const SkPaint*) override; 106 const SkPaint*) override;
107 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst, 107 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst,
108 const SkPaint*) override; 108 const SkPaint*) override;
109 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) overri de; 109 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) overri de;
110 void onDrawVertices(VertexMode vmode, int vertexCount, 110 void onDrawVertices(VertexMode vmode, int vertexCount,
111 const SkPoint vertices[], const SkPoint texs[], 111 const SkPoint vertices[], const SkPoint texs[],
112 const SkColor colors[], SkXfermode* xmode, 112 const SkColor colors[], SkXfermode* xmode,
113 const uint16_t indices[], int indexCount, 113 const uint16_t indices[], int indexCount,
114 const SkPaint&) override; 114 const SkPaint&) override;
(...skipping 26 matching lines...) Expand all
141 141
142 DrawPictureMode fDrawPictureMode; 142 DrawPictureMode fDrawPictureMode;
143 size_t fApproxBytesUsedBySubPictures; 143 size_t fApproxBytesUsedBySubPictures;
144 SkRecord* fRecord; 144 SkRecord* fRecord;
145 SkAutoTDelete<SkDrawableList> fDrawableList; 145 SkAutoTDelete<SkDrawableList> fDrawableList;
146 146
147 SkMiniRecorder* fMiniRecorder; 147 SkMiniRecorder* fMiniRecorder;
148 }; 148 };
149 149
150 #endif//SkRecorder_DEFINED 150 #endif//SkRecorder_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkPictureRecord.cpp ('k') | src/core/SkRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698