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

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

Issue 1287973003: Check for xfer barriers in GrBatch, auto-issue barriers in GrGpu (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address comment 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/GrTessellatingPathRenderer.cpp ('k') | src/gpu/GrXferProcessor.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 /* 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 168
169 bool copySurface(GrSurface* dst, 169 bool copySurface(GrSurface* dst,
170 GrSurface* src, 170 GrSurface* src,
171 const SkIRect& srcRect, 171 const SkIRect& srcRect,
172 const SkIPoint& dstPoint) override { return false; }; 172 const SkIPoint& dstPoint) override { return false; };
173 173
174 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const override { 174 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const override {
175 return false; 175 return false;
176 } 176 }
177 177
178 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {}
179
180 private: 178 private:
181 void onResetContext(uint32_t resetBits) override {} 179 void onResetContext(uint32_t resetBits) override {}
182 180
181 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {}
182
183 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc le lifeCycle, 183 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc le lifeCycle,
184 const void* srcData, size_t rowBytes) override { 184 const void* srcData, size_t rowBytes) override {
185 return NULL; 185 return NULL;
186 } 186 }
187 187
188 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, GrGpuResourc e::LifeCycle, 188 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, GrGpuResourc e::LifeCycle,
189 const void* srcData) override { 189 const void* srcData) override {
190 return NULL; 190 return NULL;
191 } 191 }
192 192
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 SkASSERT(NULL == fGpu); 262 SkASSERT(NULL == fGpu);
263 fGpu = SkNEW_ARGS(MockGpu, (this, options)); 263 fGpu = SkNEW_ARGS(MockGpu, (this, options));
264 SkASSERT(fGpu); 264 SkASSERT(fGpu);
265 this->initCommon(); 265 this->initCommon();
266 266
267 // We delete these because we want to test the cache starting with zero reso urces. Also, none of 267 // We delete these because we want to test the cache starting with zero reso urces. Also, none of
268 // these objects are required for any of tests that use this context. TODO: make stop allocating 268 // these objects are required for any of tests that use this context. TODO: make stop allocating
269 // resources in the buffer pools. 269 // resources in the buffer pools.
270 fDrawingMgr.abandon(); 270 fDrawingMgr.abandon();
271 } 271 }
OLDNEW
« no previous file with comments | « src/gpu/GrTessellatingPathRenderer.cpp ('k') | src/gpu/GrXferProcessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698