| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 #include "GrFlushToGpuDrawTarget.h" | 8 #include "GrFlushToGpuDrawTarget.h" |
| 9 #include "GrContext.h" | 9 #include "GrContext.h" |
| 10 #include "GrFontCache.h" |
| 10 #include "GrGpu.h" | 11 #include "GrGpu.h" |
| 11 #include "GrTextStrike.h" | |
| 12 #include "GrBufferAllocPool.h" | 12 #include "GrBufferAllocPool.h" |
| 13 | 13 |
| 14 GrFlushToGpuDrawTarget::GrFlushToGpuDrawTarget(GrGpu* gpu, | 14 GrFlushToGpuDrawTarget::GrFlushToGpuDrawTarget(GrGpu* gpu, |
| 15 GrVertexBufferAllocPool* vertexPo
ol, | 15 GrVertexBufferAllocPool* vertexPo
ol, |
| 16 GrIndexBufferAllocPool* indexPool
) | 16 GrIndexBufferAllocPool* indexPool
) |
| 17 : INHERITED(gpu->getContext()) | 17 : INHERITED(gpu->getContext()) |
| 18 , fGpu(SkRef(gpu)) | 18 , fGpu(SkRef(gpu)) |
| 19 , fVertexPool(vertexPool) | 19 , fVertexPool(vertexPool) |
| 20 , fIndexPool(indexPool) | 20 , fIndexPool(indexPool) |
| 21 , fFlushing(false) { | 21 , fFlushing(false) { |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 bool GrFlushToGpuDrawTarget::onCanCopySurface(const GrSurface* dst, | 253 bool GrFlushToGpuDrawTarget::onCanCopySurface(const GrSurface* dst, |
| 254 const GrSurface* src, | 254 const GrSurface* src, |
| 255 const SkIRect& srcRect, | 255 const SkIRect& srcRect, |
| 256 const SkIPoint& dstPoint) { | 256 const SkIPoint& dstPoint) { |
| 257 return getGpu()->canCopySurface(dst, src, srcRect, dstPoint); | 257 return getGpu()->canCopySurface(dst, src, srcRect, dstPoint); |
| 258 } | 258 } |
| 259 | 259 |
| 260 bool GrFlushToGpuDrawTarget::onInitCopySurfaceDstDesc(const GrSurface* src, GrSu
rfaceDesc* desc) { | 260 bool GrFlushToGpuDrawTarget::onInitCopySurfaceDstDesc(const GrSurface* src, GrSu
rfaceDesc* desc) { |
| 261 return getGpu()->initCopySurfaceDstDesc(src, desc); | 261 return getGpu()->initCopySurfaceDstDesc(src, desc); |
| 262 } | 262 } |
| OLD | NEW |