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

Side by Side Diff: src/gpu/GrContext.cpp

Issue 14203008: Remove useless SkRect::sort (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 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 9
10 #include "GrContext.h" 10 #include "GrContext.h"
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 GrAssert(combinedMatrix->preservesAxisAlignment()); 757 GrAssert(combinedMatrix->preservesAxisAlignment());
758 #ifdef SHADER_AA_FILL_RECT 758 #ifdef SHADER_AA_FILL_RECT
759 } else { 759 } else {
760 GrAssert(combinedMatrix->preservesRightAngles()); 760 GrAssert(combinedMatrix->preservesRightAngles());
761 } 761 }
762 #endif 762 #endif
763 #endif 763 #endif
764 } 764 }
765 765
766 combinedMatrix->mapRect(devRect, rect); 766 combinedMatrix->mapRect(devRect, rect);
767 devRect->sort();
768 767
769 if (strokeWidth < 0) { 768 if (strokeWidth < 0) {
770 return !isIRect(*devRect); 769 return !isIRect(*devRect);
771 } else { 770 } else {
772 return true; 771 return true;
773 } 772 }
774 } 773 }
775 774
776 void GrContext::drawRect(const GrPaint& paint, 775 void GrContext::drawRect(const GrPaint& paint,
777 const GrRect& rect, 776 const GrRect& rect,
(...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after
1805 return srcTexture; 1804 return srcTexture;
1806 } 1805 }
1807 } 1806 }
1808 1807
1809 /////////////////////////////////////////////////////////////////////////////// 1808 ///////////////////////////////////////////////////////////////////////////////
1810 #if GR_CACHE_STATS 1809 #if GR_CACHE_STATS
1811 void GrContext::printCacheStats() const { 1810 void GrContext::printCacheStats() const {
1812 fTextureCache->printStats(); 1811 fTextureCache->printStats();
1813 } 1812 }
1814 #endif 1813 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698