| 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 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 } | 542 } |
| 543 | 543 |
| 544 int GrContext::getMaxTextureSize() const { | 544 int GrContext::getMaxTextureSize() const { |
| 545 return fGpu->getCaps().maxTextureSize(); | 545 return fGpu->getCaps().maxTextureSize(); |
| 546 } | 546 } |
| 547 | 547 |
| 548 int GrContext::getMaxRenderTargetSize() const { | 548 int GrContext::getMaxRenderTargetSize() const { |
| 549 return fGpu->getCaps().maxRenderTargetSize(); | 549 return fGpu->getCaps().maxRenderTargetSize(); |
| 550 } | 550 } |
| 551 | 551 |
| 552 int GrContext::getMaxSampleCount() const { |
| 553 return fGpu->getCaps().maxSampleCount(); |
| 554 } |
| 555 |
| 552 /////////////////////////////////////////////////////////////////////////////// | 556 /////////////////////////////////////////////////////////////////////////////// |
| 553 | 557 |
| 554 GrTexture* GrContext::wrapBackendTexture(const GrBackendTextureDesc& desc) { | 558 GrTexture* GrContext::wrapBackendTexture(const GrBackendTextureDesc& desc) { |
| 555 return fGpu->wrapBackendTexture(desc); | 559 return fGpu->wrapBackendTexture(desc); |
| 556 } | 560 } |
| 557 | 561 |
| 558 GrRenderTarget* GrContext::wrapBackendRenderTarget(const GrBackendRenderTargetDe
sc& desc) { | 562 GrRenderTarget* GrContext::wrapBackendRenderTarget(const GrBackendRenderTargetDe
sc& desc) { |
| 559 return fGpu->wrapBackendRenderTarget(desc); | 563 return fGpu->wrapBackendRenderTarget(desc); |
| 560 } | 564 } |
| 561 | 565 |
| (...skipping 1427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1989 return srcTexture; | 1993 return srcTexture; |
| 1990 } | 1994 } |
| 1991 } | 1995 } |
| 1992 | 1996 |
| 1993 /////////////////////////////////////////////////////////////////////////////// | 1997 /////////////////////////////////////////////////////////////////////////////// |
| 1994 #if GR_CACHE_STATS | 1998 #if GR_CACHE_STATS |
| 1995 void GrContext::printCacheStats() const { | 1999 void GrContext::printCacheStats() const { |
| 1996 fTextureCache->printStats(); | 2000 fTextureCache->printStats(); |
| 1997 } | 2001 } |
| 1998 #endif | 2002 #endif |
| OLD | NEW |