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

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

Issue 2255283002: Fast path translate() in SkCanvas and SkLiteDL. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 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 | src/core/SkCanvas.cpp » ('j') | src/core/SkMatrix.cpp » ('J')
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 1372 matching lines...) Expand 10 before | Expand all | Expand 10 after
1383 1383
1384 virtual void willSave() {} 1384 virtual void willSave() {}
1385 // Overriders should call the corresponding INHERITED method up the inherita nce chain. 1385 // Overriders should call the corresponding INHERITED method up the inherita nce chain.
1386 virtual SaveLayerStrategy getSaveLayerStrategy(const SaveLayerRec&) { 1386 virtual SaveLayerStrategy getSaveLayerStrategy(const SaveLayerRec&) {
1387 return kFullLayer_SaveLayerStrategy; 1387 return kFullLayer_SaveLayerStrategy;
1388 } 1388 }
1389 virtual void willRestore() {} 1389 virtual void willRestore() {}
1390 virtual void didRestore() {} 1390 virtual void didRestore() {}
1391 virtual void didConcat(const SkMatrix&) {} 1391 virtual void didConcat(const SkMatrix&) {}
1392 virtual void didSetMatrix(const SkMatrix&) {} 1392 virtual void didSetMatrix(const SkMatrix&) {}
1393 virtual void didTranslate(SkScalar, SkScalar) {}
1393 1394
1394 #ifdef SK_EXPERIMENTAL_SHADOWING 1395 #ifdef SK_EXPERIMENTAL_SHADOWING
1395 virtual void didTranslateZ(SkScalar) {} 1396 virtual void didTranslateZ(SkScalar) {}
1396 #endif 1397 #endif
1397 1398
1398 virtual void onDrawAnnotation(const SkRect&, const char key[], SkData* value ); 1399 virtual void onDrawAnnotation(const SkRect&, const char key[], SkData* value );
1399 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&); 1400 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&);
1400 1401
1401 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, 1402 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x,
1402 SkScalar y, const SkPaint& paint); 1403 SkScalar y, const SkPaint& paint);
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
1682 1683
1683 class SkCanvasClipVisitor { 1684 class SkCanvasClipVisitor {
1684 public: 1685 public:
1685 virtual ~SkCanvasClipVisitor(); 1686 virtual ~SkCanvasClipVisitor();
1686 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; 1687 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0;
1687 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; 1688 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0;
1688 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; 1689 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0;
1689 }; 1690 };
1690 1691
1691 #endif 1692 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkCanvas.cpp » ('j') | src/core/SkMatrix.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698