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

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

Issue 12607013: Add MSAA configs to bench. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 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
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 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « include/gpu/GrContext.h ('k') | src/gpu/GrDrawTarget.h » ('j') | src/gpu/GrDrawTarget.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698