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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height, size
_t rowBytes, | 164 bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height, size
_t rowBytes, |
165 GrPixelConfig srcConfig, DrawPreference*, | 165 GrPixelConfig srcConfig, DrawPreference*, |
166 WritePixelTempDrawInfo*) override { return false;
} | 166 WritePixelTempDrawInfo*) override { return false;
} |
167 | 167 |
168 void buildProgramDesc(GrProgramDesc*,const GrPrimitiveProcessor&, | 168 void buildProgramDesc(GrProgramDesc*,const GrPrimitiveProcessor&, |
169 const GrPipeline&, | 169 const GrPipeline&, |
170 const GrBatchTracker&) const override {} | 170 const GrBatchTracker&) const override {} |
171 | 171 |
172 void discard(GrRenderTarget*) override {} | 172 void discard(GrRenderTarget*) override {} |
173 | 173 |
174 bool copySurface(GrSurface* dst, | 174 bool onCopySurface(GrSurface* dst, |
175 GrSurface* src, | 175 GrSurface* src, |
176 const SkIRect& srcRect, | 176 const SkIRect& srcRect, |
177 const SkIPoint& dstPoint) override { return false; }; | 177 const SkIPoint& dstPoint) override { return false; }; |
178 | 178 |
179 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const
override { | 179 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const
override { |
180 return false; | 180 return false; |
181 } | 181 } |
182 | 182 |
183 private: | 183 private: |
184 void onResetContext(uint32_t resetBits) override {} | 184 void onResetContext(uint32_t resetBits) override {} |
185 | 185 |
186 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} | 186 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} |
187 | 187 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 SkASSERT(NULL == fGpu); | 267 SkASSERT(NULL == fGpu); |
268 fGpu = SkNEW_ARGS(MockGpu, (this, options)); | 268 fGpu = SkNEW_ARGS(MockGpu, (this, options)); |
269 SkASSERT(fGpu); | 269 SkASSERT(fGpu); |
270 this->initCommon(); | 270 this->initCommon(); |
271 | 271 |
272 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of | 272 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of |
273 // these objects are required for any of tests that use this context. TODO:
make stop allocating | 273 // these objects are required for any of tests that use this context. TODO:
make stop allocating |
274 // resources in the buffer pools. | 274 // resources in the buffer pools. |
275 fDrawingMgr.abandon(); | 275 fDrawingMgr.abandon(); |
276 } | 276 } |
OLD | NEW |