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

Side by Side Diff: src/gpu/GrDrawTarget.h

Issue 938383004: Dynamically create stencil buffer when needed. (Closed) Base URL: https://skia.googlesource.com/skia.git@bigstencil
Patch Set: Actually save file before uploading Created 5 years, 10 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
« no previous file with comments | « src/gpu/GrContext.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2010 Google Inc. 2 * Copyright 2010 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrDrawTarget_DEFINED 8 #ifndef GrDrawTarget_DEFINED
9 #define GrDrawTarget_DEFINED 9 #define GrDrawTarget_DEFINED
10 10
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 719
720 private: 720 private:
721 /** 721 /**
722 * This will be called before allocating a texture as a dst for copySurface. This function 722 * This will be called before allocating a texture as a dst for copySurface. This function
723 * populates the dstDesc's config, flags, and origin so as to maximize effic iency and guarantee 723 * populates the dstDesc's config, flags, and origin so as to maximize effic iency and guarantee
724 * success of the copySurface call. 724 * success of the copySurface call.
725 */ 725 */
726 void initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* dstDesc) { 726 void initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* dstDesc) {
727 if (!this->onInitCopySurfaceDstDesc(src, dstDesc)) { 727 if (!this->onInitCopySurfaceDstDesc(src, dstDesc)) {
728 dstDesc->fOrigin = kDefault_GrSurfaceOrigin; 728 dstDesc->fOrigin = kDefault_GrSurfaceOrigin;
729 dstDesc->fFlags = kRenderTarget_GrSurfaceFlag | kNoStencil_GrSurface Flag; 729 dstDesc->fFlags = kRenderTarget_GrSurfaceFlag;
730 dstDesc->fConfig = src->config(); 730 dstDesc->fConfig = src->config();
731 } 731 }
732 } 732 }
733 733
734 /** Internal implementation of canCopySurface. */ 734 /** Internal implementation of canCopySurface. */
735 bool internalCanCopySurface(const GrSurface* dst, 735 bool internalCanCopySurface(const GrSurface* dst,
736 const GrSurface* src, 736 const GrSurface* src,
737 const SkIRect& clippedSrcRect, 737 const SkIRect& clippedSrcRect,
738 const SkIPoint& clippedDstRect); 738 const SkIPoint& clippedDstRect);
739 739
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 virtual bool setupClip(GrPipelineBuilder*, 891 virtual bool setupClip(GrPipelineBuilder*,
892 GrPipelineBuilder::AutoRestoreEffects* are, 892 GrPipelineBuilder::AutoRestoreEffects* are,
893 GrPipelineBuilder::AutoRestoreStencil* ars, 893 GrPipelineBuilder::AutoRestoreStencil* ars,
894 GrScissorState* scissorState, 894 GrScissorState* scissorState,
895 const SkRect* devBounds) SK_OVERRIDE; 895 const SkRect* devBounds) SK_OVERRIDE;
896 896
897 typedef GrDrawTarget INHERITED; 897 typedef GrDrawTarget INHERITED;
898 }; 898 };
899 899
900 #endif 900 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrContext.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698