| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |