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

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

Issue 780923002: Ganesh text rendering cleanup. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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/GrDistanceFieldTextContext.cpp ('k') | src/gpu/GrFontCache.h » ('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 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
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 }
OLDNEW
« no previous file with comments | « src/gpu/GrDistanceFieldTextContext.cpp ('k') | src/gpu/GrFontCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698