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

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

Issue 1304403003: Merge 1304263003 to m45 (Closed) Base URL: https://skia.googlesource.com/skia.git@m45
Patch Set: Created 5 years, 4 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/GrGpu.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 #include "GrContextOptions.h" 10 #include "GrContextOptions.h"
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 int left, int top, 155 int left, int top,
156 int width, int height, 156 int width, int height,
157 GrPixelConfig config, 157 GrPixelConfig config,
158 size_t rowBytes) const override { return fals e; } 158 size_t rowBytes) const override { return fals e; }
159 void buildProgramDesc(GrProgramDesc*,const GrPrimitiveProcessor&, 159 void buildProgramDesc(GrProgramDesc*,const GrPrimitiveProcessor&,
160 const GrPipeline&, 160 const GrPipeline&,
161 const GrBatchTracker&) const override {} 161 const GrBatchTracker&) const override {}
162 162
163 void discard(GrRenderTarget*) override {} 163 void discard(GrRenderTarget*) override {}
164 164
165 bool copySurface(GrSurface* dst, 165 bool onCopySurface(GrSurface* dst,
166 GrSurface* src, 166 GrSurface* src,
167 const SkIRect& srcRect, 167 const SkIRect& srcRect,
168 const SkIPoint& dstPoint) override { return false; }; 168 const SkIPoint& dstPoint) override { return false; };
169 169
170 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) overr ide { 170 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) overr ide {
171 return false; 171 return false;
172 } 172 }
173 173
174 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} 174 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {}
175 175
176 private: 176 private:
177 void onResetContext(uint32_t resetBits) override {} 177 void onResetContext(uint32_t resetBits) override {}
178 178
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 SkASSERT(NULL == fGpu); 252 SkASSERT(NULL == fGpu);
253 fGpu = SkNEW_ARGS(MockGpu, (this, options)); 253 fGpu = SkNEW_ARGS(MockGpu, (this, options));
254 SkASSERT(fGpu); 254 SkASSERT(fGpu);
255 this->initCommon(); 255 this->initCommon();
256 256
257 // We delete these because we want to test the cache starting with zero reso urces. Also, none of 257 // We delete these because we want to test the cache starting with zero reso urces. Also, none of
258 // these objects are required for any of tests that use this context. TODO: make stop allocating 258 // these objects are required for any of tests that use this context. TODO: make stop allocating
259 // resources in the buffer pools. 259 // resources in the buffer pools.
260 fDrawingMgr.abandon(); 260 fDrawingMgr.abandon();
261 } 261 }
OLDNEW
« no previous file with comments | « src/gpu/GrGpu.cpp ('k') | src/gpu/gl/GrGLGpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698