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

Side by Side Diff: sky/engine/platform/graphics/ProfilingCanvas.cpp

Issue 812543002: Update from https://crrev.com/308331 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 this->SkCanvas::drawBitmap(bitmap, left, top, paint); 111 this->SkCanvas::drawBitmap(bitmap, left, top, paint);
112 } 112 }
113 113
114 void ProfilingCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, const SkRect& dst, 114 void ProfilingCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, const SkRect& dst,
115 const SkPaint* paint, DrawBitmapRectFlags flags) 115 const SkPaint* paint, DrawBitmapRectFlags flags)
116 { 116 {
117 AutoStamper stamper(this); 117 AutoStamper stamper(this);
118 this->SkCanvas::drawBitmapRectToRect(bitmap, src, dst, paint, flags); 118 this->SkCanvas::drawBitmapRectToRect(bitmap, src, dst, paint, flags);
119 } 119 }
120 120
121 void ProfilingCanvas::drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m , const SkPaint* paint)
122 {
123 AutoStamper stamper(this);
124 this->SkCanvas::drawBitmapMatrix(bitmap, m, paint);
125 }
126
127 void ProfilingCanvas::drawBitmapNine(const SkBitmap& bitmap, const SkIRect& cent er, const SkRect& dst, const SkPaint* paint) 121 void ProfilingCanvas::drawBitmapNine(const SkBitmap& bitmap, const SkIRect& cent er, const SkRect& dst, const SkPaint* paint)
128 { 122 {
129 AutoStamper stamper(this); 123 AutoStamper stamper(this);
130 this->SkCanvas::drawBitmapNine(bitmap, center, dst, paint); 124 this->SkCanvas::drawBitmapNine(bitmap, center, dst, paint);
131 } 125 }
132 126
133 void ProfilingCanvas::drawSprite(const SkBitmap& bitmap, int left, int top, cons t SkPaint* paint) 127 void ProfilingCanvas::drawSprite(const SkBitmap& bitmap, int left, int top, cons t SkPaint* paint)
134 { 128 {
135 AutoStamper stamper(this); 129 AutoStamper stamper(this);
136 this->SkCanvas::drawSprite(bitmap, left, top, paint); 130 this->SkCanvas::drawSprite(bitmap, left, top, paint);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 AutoStamper stamper(this); 184 AutoStamper stamper(this);
191 this->SkCanvas::onDrawPosTextH(text, byteLength, xpos, constY, paint); 185 this->SkCanvas::onDrawPosTextH(text, byteLength, xpos, constY, paint);
192 } 186 }
193 187
194 void ProfilingCanvas::onDrawTextOnPath(const void* text, size_t byteLength, cons t SkPath& path, const SkMatrix* matrix, const SkPaint& paint) 188 void ProfilingCanvas::onDrawTextOnPath(const void* text, size_t byteLength, cons t SkPath& path, const SkMatrix* matrix, const SkPaint& paint)
195 { 189 {
196 AutoStamper stamper(this); 190 AutoStamper stamper(this);
197 this->SkCanvas::onDrawTextOnPath(text, byteLength, path, matrix, paint); 191 this->SkCanvas::onDrawTextOnPath(text, byteLength, path, matrix, paint);
198 } 192 }
199 193
200 void ProfilingCanvas::onPushCull(const SkRect& cullRect)
201 {
202 AutoStamper stamper(this);
203 this->SkCanvas::onPushCull(cullRect);
204 }
205
206 void ProfilingCanvas::onPopCull()
207 {
208 AutoStamper stamper(this);
209 this->SkCanvas::onPopCull();
210 }
211
212 void ProfilingCanvas::onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeSt yle edgeStyle) 194 void ProfilingCanvas::onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeSt yle edgeStyle)
213 { 195 {
214 AutoStamper stamper(this); 196 AutoStamper stamper(this);
215 this->SkCanvas::onClipRect(rect, op, edgeStyle); 197 this->SkCanvas::onClipRect(rect, op, edgeStyle);
216 } 198 }
217 199
218 void ProfilingCanvas::onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdg eStyle edgeStyle) 200 void ProfilingCanvas::onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdg eStyle edgeStyle)
219 { 201 {
220 AutoStamper stamper(this); 202 AutoStamper stamper(this);
221 this->SkCanvas::onClipRRect(rrect, op, edgeStyle); 203 this->SkCanvas::onClipRRect(rrect, op, edgeStyle);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 return this->SkCanvas::willSaveLayer(bounds, paint, flags); 245 return this->SkCanvas::willSaveLayer(bounds, paint, flags);
264 } 246 }
265 247
266 void ProfilingCanvas::willRestore() 248 void ProfilingCanvas::willRestore()
267 { 249 {
268 AutoStamper stamper(this); 250 AutoStamper stamper(this);
269 this->SkCanvas::willRestore(); 251 this->SkCanvas::willRestore();
270 } 252 }
271 253
272 } // namespace blink 254 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/platform/graphics/ProfilingCanvas.h ('k') | sky/engine/platform/graphics/ReplayingCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698