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

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

Issue 862933005: remove drawtype (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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/GrInOrderDrawBuffer.cpp ('k') | src/gpu/gl/GrGLGpu.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 /* 2 /*
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "GrTest.h" 9 #include "GrTest.h"
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 } 59 }
60 60
61 bool readPixelsWillPayForYFlip(GrRenderTarget* renderTarget, 61 bool readPixelsWillPayForYFlip(GrRenderTarget* renderTarget,
62 int left, int top, 62 int left, int top,
63 int width, int height, 63 int width, int height,
64 GrPixelConfig config, 64 GrPixelConfig config,
65 size_t rowBytes) const SK_OVERRIDE { return f alse; } 65 size_t rowBytes) const SK_OVERRIDE { return f alse; }
66 void buildProgramDesc(GrProgramDesc*,const GrPrimitiveProcessor&, 66 void buildProgramDesc(GrProgramDesc*,const GrPrimitiveProcessor&,
67 const GrOptDrawState&, 67 const GrOptDrawState&,
68 const GrProgramDesc::DescInfo&, 68 const GrProgramDesc::DescInfo&,
69 GrGpu::DrawType,
70 const GrBatchTracker&) const SK_OVERRIDE {} 69 const GrBatchTracker&) const SK_OVERRIDE {}
71 70
72 void discard(GrRenderTarget*) SK_OVERRIDE {} 71 void discard(GrRenderTarget*) SK_OVERRIDE {}
73 72
74 bool canCopySurface(const GrSurface* dst, 73 bool canCopySurface(const GrSurface* dst,
75 const GrSurface* src, 74 const GrSurface* src,
76 const SkIRect& srcRect, 75 const SkIRect& srcRect,
77 const SkIPoint& dstPoint) SK_OVERRIDE { return false; }; 76 const SkIPoint& dstPoint) SK_OVERRIDE { return false; };
78 77
79 bool copySurface(GrSurface* dst, 78 bool copySurface(GrSurface* dst,
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 // these objects are required for any of tests that use this context. TODO: make stop allocating 178 // these objects are required for any of tests that use this context. TODO: make stop allocating
180 // resources in the buffer pools. 179 // resources in the buffer pools.
181 SkDELETE(fDrawBuffer); 180 SkDELETE(fDrawBuffer);
182 SkDELETE(fDrawBufferVBAllocPool); 181 SkDELETE(fDrawBufferVBAllocPool);
183 SkDELETE(fDrawBufferIBAllocPool); 182 SkDELETE(fDrawBufferIBAllocPool);
184 183
185 fDrawBuffer = NULL; 184 fDrawBuffer = NULL;
186 fDrawBufferVBAllocPool = NULL; 185 fDrawBufferVBAllocPool = NULL;
187 fDrawBufferIBAllocPool = NULL; 186 fDrawBufferIBAllocPool = NULL;
188 } 187 }
OLDNEW
« no previous file with comments | « src/gpu/GrInOrderDrawBuffer.cpp ('k') | src/gpu/gl/GrGLGpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698