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

Side by Side Diff: include/gpu/GrContext.h

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
« no previous file with comments | « no previous file | src/gpu/GrContext.cpp » ('j') | src/gpu/GrTextContext.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 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 #ifndef GrContext_DEFINED 10 #ifndef GrContext_DEFINED
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 AutoClip fAutoClip; 829 AutoClip fAutoClip;
830 AutoRenderTarget fAutoRT; 830 AutoRenderTarget fAutoRT;
831 AutoMatrix fAutoMatrix; 831 AutoMatrix fAutoMatrix;
832 }; 832 };
833 833
834 /////////////////////////////////////////////////////////////////////////// 834 ///////////////////////////////////////////////////////////////////////////
835 // Functions intended for internal use only. 835 // Functions intended for internal use only.
836 GrGpu* getGpu() { return fGpu; } 836 GrGpu* getGpu() { return fGpu; }
837 const GrGpu* getGpu() const { return fGpu; } 837 const GrGpu* getGpu() const { return fGpu; }
838 GrFontCache* getFontCache() { return fFontCache; } 838 GrFontCache* getFontCache() { return fFontCache; }
839 GrDrawTarget* getTextTarget(const GrPaint& paint); 839 GrDrawTarget* getTextTarget();
840 const GrIndexBuffer* getQuadIndexBuffer() const; 840 const GrIndexBuffer* getQuadIndexBuffer() const;
841 841
842 /** 842 /**
843 * Stencil buffers add themselves to the cache using addStencilBuffer. findS tencilBuffer is 843 * Stencil buffers add themselves to the cache using addStencilBuffer. findS tencilBuffer is
844 * called to check the cache for a SB that matches an RT's criteria. 844 * called to check the cache for a SB that matches an RT's criteria.
845 */ 845 */
846 void addStencilBuffer(GrStencilBuffer* sb); 846 void addStencilBuffer(GrStencilBuffer* sb);
847 GrStencilBuffer* findStencilBuffer(int width, int height, int sampleCnt); 847 GrStencilBuffer* findStencilBuffer(int width, int height, int sampleCnt);
848 848
849 GrPathRenderer* getPathRenderer( 849 GrPathRenderer* getPathRenderer(
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
1019 } 1019 }
1020 1020
1021 GrTexture* texture() { return fTexture; } 1021 GrTexture* texture() { return fTexture; }
1022 1022
1023 private: 1023 private:
1024 GrContext* fContext; 1024 GrContext* fContext;
1025 GrTexture* fTexture; 1025 GrTexture* fTexture;
1026 }; 1026 };
1027 1027
1028 #endif 1028 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrContext.cpp » ('j') | src/gpu/GrTextContext.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698