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

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

Issue 770813002: move some copy surface stuff to GrFlushToGpuDrawTarget (Closed) Base URL: https://skia.googlesource.com/skia.git@playback
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 | « no previous file | src/gpu/GrFlushToGpuDrawTarget.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 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 #ifndef GrFlushToGpuDrawTarget_DEFINED 8 #ifndef GrFlushToGpuDrawTarget_DEFINED
9 #define GrFlushToGpuDrawTarget_DEFINED 9 #define GrFlushToGpuDrawTarget_DEFINED
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 void setDrawBuffers(DrawInfo*, size_t stride) SK_OVERRIDE; 72 void setDrawBuffers(DrawInfo*, size_t stride) SK_OVERRIDE;
73 bool onReserveVertexSpace(size_t vertexSize, int vertexCount, void** vertice s) SK_OVERRIDE; 73 bool onReserveVertexSpace(size_t vertexSize, int vertexCount, void** vertice s) SK_OVERRIDE;
74 bool onReserveIndexSpace(int indexCount, void** indices) SK_OVERRIDE; 74 bool onReserveIndexSpace(int indexCount, void** indices) SK_OVERRIDE;
75 void releaseReservedVertexSpace() SK_OVERRIDE; 75 void releaseReservedVertexSpace() SK_OVERRIDE;
76 void releaseReservedIndexSpace() SK_OVERRIDE; 76 void releaseReservedIndexSpace() SK_OVERRIDE;
77 void geometrySourceWillPush() SK_OVERRIDE; 77 void geometrySourceWillPush() SK_OVERRIDE;
78 void geometrySourceWillPop(const GeometrySrcState& restoredState) SK_OVERRID E; 78 void geometrySourceWillPop(const GeometrySrcState& restoredState) SK_OVERRID E;
79 void willReserveVertexAndIndexSpace(int vertexCount, 79 void willReserveVertexAndIndexSpace(int vertexCount,
80 size_t vertexStride, 80 size_t vertexStride,
81 int indexCount) SK_OVERRIDE; 81 int indexCount) SK_OVERRIDE;
82 bool onCanCopySurface(const GrSurface* dst,
83 const GrSurface* src,
84 const SkIRect& srcRect,
85 const SkIPoint& dstPoint) SK_OVERRIDE;
86 bool onInitCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) SK_ OVERRIDE;
82 87
83 GeoPoolStateStack fGeoPoolStateStack; 88 GeoPoolStateStack fGeoPoolStateStack;
84 SkAutoTUnref<GrGpu> fGpu; 89 SkAutoTUnref<GrGpu> fGpu;
85 GrVertexBufferAllocPool* fVertexPool; 90 GrVertexBufferAllocPool* fVertexPool;
86 GrIndexBufferAllocPool* fIndexPool; 91 GrIndexBufferAllocPool* fIndexPool;
87 bool fFlushing; 92 bool fFlushing;
88 93
89 typedef GrClipTarget INHERITED; 94 typedef GrClipTarget INHERITED;
90 }; 95 };
91 96
92 #endif 97 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrFlushToGpuDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698