OLD | NEW |
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 1669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1680 if (NULL == fSoftwarePathRenderer) { | 1680 if (NULL == fSoftwarePathRenderer) { |
1681 fSoftwarePathRenderer = SkNEW_ARGS(GrSoftwarePathRenderer, (this)); | 1681 fSoftwarePathRenderer = SkNEW_ARGS(GrSoftwarePathRenderer, (this)); |
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 bool GrContext::isConfigRenderable(GrPixelConfig config, bool withMSAA) const { |
1691 bool GrContext::isConfigRenderable(GrPixelConfig config) const { | 1691 return fGpu->caps()->isConfigRenderable(config, withMSAA); |
1692 return fGpu->caps()->isConfigRenderable(config); | |
1693 } | 1692 } |
1694 | 1693 |
1695 static inline intptr_t setOrClear(intptr_t bits, int shift, intptr_t pred) { | 1694 static inline intptr_t setOrClear(intptr_t bits, int shift, intptr_t pred) { |
1696 intptr_t mask = 1 << shift; | 1695 intptr_t mask = 1 << shift; |
1697 if (pred) { | 1696 if (pred) { |
1698 bits |= mask; | 1697 bits |= mask; |
1699 } else { | 1698 } else { |
1700 bits &= ~mask; | 1699 bits &= ~mask; |
1701 } | 1700 } |
1702 return bits; | 1701 return bits; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1772 return NULL; | 1771 return NULL; |
1773 } | 1772 } |
1774 } | 1773 } |
1775 | 1774 |
1776 /////////////////////////////////////////////////////////////////////////////// | 1775 /////////////////////////////////////////////////////////////////////////////// |
1777 #if GR_CACHE_STATS | 1776 #if GR_CACHE_STATS |
1778 void GrContext::printCacheStats() const { | 1777 void GrContext::printCacheStats() const { |
1779 fTextureCache->printStats(); | 1778 fTextureCache->printStats(); |
1780 } | 1779 } |
1781 #endif | 1780 #endif |
OLD | NEW |