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

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

Issue 1144433002: Move copy-surface-as-draw fallback to GrGLGpu. (Closed) Base URL: https://skia.googlesource.com/skia.git@vares
Patch Set: remove incorrect assert 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
163 bool copySurface(GrSurface* dst, 158 bool copySurface(GrSurface* dst,
164 GrSurface* src, 159 GrSurface* src,
165 const SkIRect& srcRect, 160 const SkIRect& srcRect,
166 const SkIPoint& dstPoint) override { return false; }; 161 const SkIPoint& dstPoint) override { return false; };
167 162
168 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) overr ide { 163 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) overr ide {
169 return false; 164 return false;
170 } 165 }
171 166
172 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} 167 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {}
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 SkASSERT(fGpu); 256 SkASSERT(fGpu);
262 this->initCommon(); 257 this->initCommon();
263 258
264 // We delete these because we want to test the cache starting with zero reso urces. Also, none of 259 // We delete these because we want to test the cache starting with zero reso urces. Also, none of
265 // these objects are required for any of tests that use this context. TODO: make stop allocating 260 // these objects are required for any of tests that use this context. TODO: make stop allocating
266 // resources in the buffer pools. 261 // resources in the buffer pools.
267 SkDELETE(fDrawBuffer); 262 SkDELETE(fDrawBuffer);
268 fDrawBuffer = NULL; 263 fDrawBuffer = NULL;
269 264
270 } 265 }
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