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

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

Issue 16928010: Make text context responsible for setting GrPaint on GrDrawState. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 6 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 1636 matching lines...) Expand 10 before | Expand all | Expand 10 after
1647 DRAW_BUFFER_IBPOOL_BUFFER_SIZE, 1647 DRAW_BUFFER_IBPOOL_BUFFER_SIZE,
1648 DRAW_BUFFER_IBPOOL_PREALLOC_BUFFERS)); 1648 DRAW_BUFFER_IBPOOL_PREALLOC_BUFFERS));
1649 1649
1650 fDrawBuffer = SkNEW_ARGS(GrInOrderDrawBuffer, (fGpu, 1650 fDrawBuffer = SkNEW_ARGS(GrInOrderDrawBuffer, (fGpu,
1651 fDrawBufferVBAllocPool, 1651 fDrawBufferVBAllocPool,
1652 fDrawBufferIBAllocPool)); 1652 fDrawBufferIBAllocPool));
1653 1653
1654 fDrawBuffer->setDrawState(fDrawState); 1654 fDrawBuffer->setDrawState(fDrawState);
1655 } 1655 }
1656 1656
1657 GrDrawTarget* GrContext::getTextTarget(const GrPaint& paint) { 1657 GrDrawTarget* GrContext::getTextTarget() {
1658 return this->prepareToDraw(&paint, BUFFERED_DRAW); 1658 return this->prepareToDraw(NULL, BUFFERED_DRAW);
1659 } 1659 }
1660 1660
1661 const GrIndexBuffer* GrContext::getQuadIndexBuffer() const { 1661 const GrIndexBuffer* GrContext::getQuadIndexBuffer() const {
1662 return fGpu->getQuadIndexBuffer(); 1662 return fGpu->getQuadIndexBuffer();
1663 } 1663 }
1664 1664
1665 namespace { 1665 namespace {
1666 void test_pm_conversions(GrContext* ctx, int* pmToUPMValue, int* upmToPMValue) { 1666 void test_pm_conversions(GrContext* ctx, int* pmToUPMValue, int* upmToPMValue) {
1667 GrConfigConversionEffect::PMConversion pmToUPM; 1667 GrConfigConversionEffect::PMConversion pmToUPM;
1668 GrConfigConversionEffect::PMConversion upmToPM; 1668 GrConfigConversionEffect::PMConversion upmToPM;
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
1835 return srcTexture; 1835 return srcTexture;
1836 } 1836 }
1837 } 1837 }
1838 1838
1839 /////////////////////////////////////////////////////////////////////////////// 1839 ///////////////////////////////////////////////////////////////////////////////
1840 #if GR_CACHE_STATS 1840 #if GR_CACHE_STATS
1841 void GrContext::printCacheStats() const { 1841 void GrContext::printCacheStats() const {
1842 fTextureCache->printStats(); 1842 fTextureCache->printStats();
1843 } 1843 }
1844 #endif 1844 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrContext.h ('k') | src/gpu/GrDrawState.h » ('j') | src/gpu/GrTextContext.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698