OLD | NEW |
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 return true; | 58 return true; |
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 GrPipeline&, | 67 const GrPipeline&, |
68 const GrProgramDesc::DescInfo&, | |
69 const GrBatchTracker&) const SK_OVERRIDE {} | 68 const GrBatchTracker&) const SK_OVERRIDE {} |
70 | 69 |
71 void discard(GrRenderTarget*) SK_OVERRIDE {} | 70 void discard(GrRenderTarget*) SK_OVERRIDE {} |
72 | 71 |
73 bool canCopySurface(const GrSurface* dst, | 72 bool canCopySurface(const GrSurface* dst, |
74 const GrSurface* src, | 73 const GrSurface* src, |
75 const SkIRect& srcRect, | 74 const SkIRect& srcRect, |
76 const SkIPoint& dstPoint) SK_OVERRIDE { return false; }; | 75 const SkIPoint& dstPoint) SK_OVERRIDE { return false; }; |
77 | 76 |
78 bool copySurface(GrSurface* dst, | 77 bool copySurface(GrSurface* dst, |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 } |
OLD | NEW |