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

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

Issue 26342006: Move renderable config list to GrDrawTargetCaps (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fix size_t/int comparison Created 7 years, 2 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 | src/gpu/GrDrawTarget.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 /* 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 1671 matching lines...) Expand 10 before | Expand all | Expand 10 after
1682 } 1682 }
1683 pr = fSoftwarePathRenderer; 1683 pr = fSoftwarePathRenderer;
1684 } 1684 }
1685 1685
1686 return pr; 1686 return pr;
1687 } 1687 }
1688 1688
1689 //////////////////////////////////////////////////////////////////////////////// 1689 ////////////////////////////////////////////////////////////////////////////////
1690 1690
1691 bool GrContext::isConfigRenderable(GrPixelConfig config) const { 1691 bool GrContext::isConfigRenderable(GrPixelConfig config) const {
1692 return fGpu->isConfigRenderable(config); 1692 return fGpu->caps()->isConfigRenderable(config);
1693 } 1693 }
1694 1694
1695 static inline intptr_t setOrClear(intptr_t bits, int shift, intptr_t pred) { 1695 static inline intptr_t setOrClear(intptr_t bits, int shift, intptr_t pred) {
1696 intptr_t mask = 1 << shift; 1696 intptr_t mask = 1 << shift;
1697 if (pred) { 1697 if (pred) {
1698 bits |= mask; 1698 bits |= mask;
1699 } else { 1699 } else {
1700 bits &= ~mask; 1700 bits &= ~mask;
1701 } 1701 }
1702 return bits; 1702 return bits;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
1772 return NULL; 1772 return NULL;
1773 } 1773 }
1774 } 1774 }
1775 1775
1776 /////////////////////////////////////////////////////////////////////////////// 1776 ///////////////////////////////////////////////////////////////////////////////
1777 #if GR_CACHE_STATS 1777 #if GR_CACHE_STATS
1778 void GrContext::printCacheStats() const { 1778 void GrContext::printCacheStats() const {
1779 fTextureCache->printStats(); 1779 fTextureCache->printStats();
1780 } 1780 }
1781 #endif 1781 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698