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

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

Issue 1040303002: Use texture barriers to read directly from the RT (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_zz1_reverseiter
Patch Set: Created 5 years, 8 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
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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 bool copySurface(GrSurface* dst, 166 bool copySurface(GrSurface* dst,
167 GrSurface* src, 167 GrSurface* src,
168 const SkIRect& srcRect, 168 const SkIRect& srcRect,
169 const SkIPoint& dstPoint) override { return false; }; 169 const SkIPoint& dstPoint) override { return false; };
170 170
171 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) overr ide { 171 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) overr ide {
172 return false; 172 return false;
173 } 173 }
174 174
175 void blendBarrier() override {}
176
175 private: 177 private:
176 void onResetContext(uint32_t resetBits) override {} 178 void onResetContext(uint32_t resetBits) override {}
177 179
178 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, bool budgeted, const v oid* srcData, 180 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, bool budgeted, const v oid* srcData,
179 size_t rowBytes) override { 181 size_t rowBytes) override {
180 return NULL; 182 return NULL;
181 } 183 }
182 184
183 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, bool budgete d, 185 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, bool budgete d,
184 const void* srcData) override { 186 const void* srcData) override {
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 // 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
267 // resources in the buffer pools. 269 // resources in the buffer pools.
268 SkDELETE(fDrawBuffer); 270 SkDELETE(fDrawBuffer);
269 SkDELETE(fDrawBufferVBAllocPool); 271 SkDELETE(fDrawBufferVBAllocPool);
270 SkDELETE(fDrawBufferIBAllocPool); 272 SkDELETE(fDrawBufferIBAllocPool);
271 273
272 fDrawBuffer = NULL; 274 fDrawBuffer = NULL;
273 fDrawBufferVBAllocPool = NULL; 275 fDrawBufferVBAllocPool = NULL;
274 fDrawBufferIBAllocPool = NULL; 276 fDrawBufferIBAllocPool = NULL;
275 } 277 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698