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

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: fix windows build Created 5 years, 7 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/GrTargetCommands.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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 163
164 bool copySurface(GrSurface* dst, 164 bool copySurface(GrSurface* dst,
165 GrSurface* src, 165 GrSurface* src,
166 const SkIRect& srcRect, 166 const SkIRect& srcRect,
167 const SkIPoint& dstPoint) override { return false; }; 167 const SkIPoint& dstPoint) override { return false; };
168 168
169 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) overr ide { 169 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) overr ide {
170 return false; 170 return false;
171 } 171 }
172 172
173 void xferBarrier(GrXferBarrierType) override {}
174
173 private: 175 private:
174 void onResetContext(uint32_t resetBits) override {} 176 void onResetContext(uint32_t resetBits) override {}
175 177
176 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc le lifeCycle, 178 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc le lifeCycle,
177 const void* srcData, size_t rowBytes) override { 179 const void* srcData, size_t rowBytes) override {
178 return NULL; 180 return NULL;
179 } 181 }
180 182
181 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, GrGpuResourc e::LifeCycle, 183 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, GrGpuResourc e::LifeCycle,
182 const void* srcData) override { 184 const void* srcData) override {
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 // these objects are required for any of tests that use this context. TODO: make stop allocating 266 // these objects are required for any of tests that use this context. TODO: make stop allocating
265 // resources in the buffer pools. 267 // resources in the buffer pools.
266 SkDELETE(fDrawBuffer); 268 SkDELETE(fDrawBuffer);
267 SkDELETE(fDrawBufferVBAllocPool); 269 SkDELETE(fDrawBufferVBAllocPool);
268 SkDELETE(fDrawBufferIBAllocPool); 270 SkDELETE(fDrawBufferIBAllocPool);
269 271
270 fDrawBuffer = NULL; 272 fDrawBuffer = NULL;
271 fDrawBufferVBAllocPool = NULL; 273 fDrawBufferVBAllocPool = NULL;
272 fDrawBufferIBAllocPool = NULL; 274 fDrawBufferIBAllocPool = NULL;
273 } 275 }
OLDNEW
« no previous file with comments | « src/gpu/GrTargetCommands.cpp ('k') | src/gpu/GrXferProcessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698