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

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

Issue 900883002: Revert of Move DstCopy on gpu into the GrXferProcessor. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 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/GrProgramDesc.h ('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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 return true; 135 return true;
136 } 136 }
137 137
138 bool readPixelsWillPayForYFlip(GrRenderTarget* renderTarget, 138 bool readPixelsWillPayForYFlip(GrRenderTarget* renderTarget,
139 int left, int top, 139 int left, int top,
140 int width, int height, 140 int width, int height,
141 GrPixelConfig config, 141 GrPixelConfig config,
142 size_t rowBytes) const SK_OVERRIDE { return f alse; } 142 size_t rowBytes) const SK_OVERRIDE { return f alse; }
143 void buildProgramDesc(GrProgramDesc*,const GrPrimitiveProcessor&, 143 void buildProgramDesc(GrProgramDesc*,const GrPrimitiveProcessor&,
144 const GrPipeline&, 144 const GrPipeline&,
145 const GrProgramDesc::DescInfo&,
145 const GrBatchTracker&) const SK_OVERRIDE {} 146 const GrBatchTracker&) const SK_OVERRIDE {}
146 147
147 void discard(GrRenderTarget*) SK_OVERRIDE {} 148 void discard(GrRenderTarget*) SK_OVERRIDE {}
148 149
149 bool canCopySurface(const GrSurface* dst, 150 bool canCopySurface(const GrSurface* dst,
150 const GrSurface* src, 151 const GrSurface* src,
151 const SkIRect& srcRect, 152 const SkIRect& srcRect,
152 const SkIPoint& dstPoint) SK_OVERRIDE { return false; }; 153 const SkIPoint& dstPoint) SK_OVERRIDE { return false; };
153 154
154 bool copySurface(GrSurface* dst, 155 bool copySurface(GrSurface* dst,
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 // these objects are required for any of tests that use this context. TODO: make stop allocating 256 // these objects are required for any of tests that use this context. TODO: make stop allocating
256 // resources in the buffer pools. 257 // resources in the buffer pools.
257 SkDELETE(fDrawBuffer); 258 SkDELETE(fDrawBuffer);
258 SkDELETE(fDrawBufferVBAllocPool); 259 SkDELETE(fDrawBufferVBAllocPool);
259 SkDELETE(fDrawBufferIBAllocPool); 260 SkDELETE(fDrawBufferIBAllocPool);
260 261
261 fDrawBuffer = NULL; 262 fDrawBuffer = NULL;
262 fDrawBufferVBAllocPool = NULL; 263 fDrawBufferVBAllocPool = NULL;
263 fDrawBufferIBAllocPool = NULL; 264 fDrawBufferIBAllocPool = NULL;
264 } 265 }
OLDNEW
« no previous file with comments | « src/gpu/GrProgramDesc.h ('k') | src/gpu/GrXferProcessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698