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

Side by Side Diff: src/core/SkCanvas.cpp

Issue 354953008: delete code for SK_SUPPORT_LEGACY_GETTOTALCLIP (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 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 | « include/core/SkCanvas.h ('k') | no next file » | 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 2008 The Android Open Source Project 2 * Copyright 2008 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 8
9 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkBitmapDevice.h" 10 #include "SkBitmapDevice.h"
(...skipping 1755 matching lines...) Expand 10 before | Expand all | Expand 10 after
1766 if (fMCRec->fRasterClip->isEmpty()) { 1766 if (fMCRec->fRasterClip->isEmpty()) {
1767 return kEmpty_ClipType; 1767 return kEmpty_ClipType;
1768 } 1768 }
1769 if (fMCRec->fRasterClip->isRect()) { 1769 if (fMCRec->fRasterClip->isRect()) {
1770 return kRect_ClipType; 1770 return kRect_ClipType;
1771 } 1771 }
1772 return kComplex_ClipType; 1772 return kComplex_ClipType;
1773 } 1773 }
1774 #endif 1774 #endif
1775 1775
1776 #ifdef SK_SUPPORT_LEGACY_GETTOTALCLIP
1777 const SkRegion& SkCanvas::getTotalClip() const {
1778 return fMCRec->fRasterClip->forceGetBW();
1779 }
1780 #endif
1781
1782 const SkRegion& SkCanvas::internal_private_getTotalClip() const { 1776 const SkRegion& SkCanvas::internal_private_getTotalClip() const {
1783 return fMCRec->fRasterClip->forceGetBW(); 1777 return fMCRec->fRasterClip->forceGetBW();
1784 } 1778 }
1785 1779
1786 void SkCanvas::internal_private_getTotalClipAsPath(SkPath* path) const { 1780 void SkCanvas::internal_private_getTotalClipAsPath(SkPath* path) const {
1787 path->reset(); 1781 path->reset();
1788 1782
1789 const SkRegion& rgn = fMCRec->fRasterClip->forceGetBW(); 1783 const SkRegion& rgn = fMCRec->fRasterClip->forceGetBW();
1790 if (rgn.isEmpty()) { 1784 if (rgn.isEmpty()) {
1791 return; 1785 return;
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after
2588 if (!supported_for_raster_canvas(info)) { 2582 if (!supported_for_raster_canvas(info)) {
2589 return NULL; 2583 return NULL;
2590 } 2584 }
2591 2585
2592 SkBitmap bitmap; 2586 SkBitmap bitmap;
2593 if (!bitmap.installPixels(info, pixels, rowBytes)) { 2587 if (!bitmap.installPixels(info, pixels, rowBytes)) {
2594 return NULL; 2588 return NULL;
2595 } 2589 }
2596 return SkNEW_ARGS(SkCanvas, (bitmap)); 2590 return SkNEW_ARGS(SkCanvas, (bitmap));
2597 } 2591 }
OLDNEW
« no previous file with comments | « include/core/SkCanvas.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698