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

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

Issue 1142003003: Revert of Move copy-surface-as-draw fallback to GrGLGpu. (Closed) Base URL: https://skia.googlesource.com/skia.git@vares
Patch Set: 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/GrInOrderDrawBuffer.cpp ('k') | src/gpu/gl/GrGLCaps.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 10
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 int left, int top, 148 int left, int top,
149 int width, int height, 149 int width, int height,
150 GrPixelConfig config, 150 GrPixelConfig config,
151 size_t rowBytes) const override { return fals e; } 151 size_t rowBytes) const override { return fals e; }
152 void buildProgramDesc(GrProgramDesc*,const GrPrimitiveProcessor&, 152 void buildProgramDesc(GrProgramDesc*,const GrPrimitiveProcessor&,
153 const GrPipeline&, 153 const GrPipeline&,
154 const GrBatchTracker&) const override {} 154 const GrBatchTracker&) const override {}
155 155
156 void discard(GrRenderTarget*) override {} 156 void discard(GrRenderTarget*) override {}
157 157
158 bool canCopySurface(const GrSurface* dst,
159 const GrSurface* src,
160 const SkIRect& srcRect,
161 const SkIPoint& dstPoint) override { return false; };
162
158 bool copySurface(GrSurface* dst, 163 bool copySurface(GrSurface* dst,
159 GrSurface* src, 164 GrSurface* src,
160 const SkIRect& srcRect, 165 const SkIRect& srcRect,
161 const SkIPoint& dstPoint) override { return false; }; 166 const SkIPoint& dstPoint) override { return false; };
162 167
163 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) overr ide { 168 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) overr ide {
164 return false; 169 return false;
165 } 170 }
166 171
167 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} 172 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {}
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 SkASSERT(fGpu); 261 SkASSERT(fGpu);
257 this->initCommon(); 262 this->initCommon();
258 263
259 // We delete these because we want to test the cache starting with zero reso urces. Also, none of 264 // We delete these because we want to test the cache starting with zero reso urces. Also, none of
260 // these objects are required for any of tests that use this context. TODO: make stop allocating 265 // these objects are required for any of tests that use this context. TODO: make stop allocating
261 // resources in the buffer pools. 266 // resources in the buffer pools.
262 SkDELETE(fDrawBuffer); 267 SkDELETE(fDrawBuffer);
263 fDrawBuffer = NULL; 268 fDrawBuffer = NULL;
264 269
265 } 270 }
OLDNEW
« no previous file with comments | « src/gpu/GrInOrderDrawBuffer.cpp ('k') | src/gpu/gl/GrGLCaps.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698