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

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

Issue 776243005: Revert of move program descriptor generation to flush (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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/gl/GrGLProgram.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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 void onResolveRenderTarget(GrRenderTarget* target) SK_OVERRIDE { return; } 133 void onResolveRenderTarget(GrRenderTarget* target) SK_OVERRIDE { return; }
134 134
135 bool createStencilBufferForRenderTarget(GrRenderTarget*, int width, int heig ht) SK_OVERRIDE { 135 bool createStencilBufferForRenderTarget(GrRenderTarget*, int width, int heig ht) SK_OVERRIDE {
136 return false; 136 return false;
137 } 137 }
138 138
139 bool attachStencilBufferToRenderTarget(GrStencilBuffer*, GrRenderTarget*) SK _OVERRIDE { 139 bool attachStencilBufferToRenderTarget(GrStencilBuffer*, GrRenderTarget*) SK _OVERRIDE {
140 return false; 140 return false;
141 } 141 }
142 142
143 bool flushGraphicsState(const GrOptDrawState&) SK_OVERRIDE { return false; } 143 bool flushGraphicsState(const GrOptDrawState&, DrawType) SK_OVERRIDE { retur n false; }
144 144
145 void clearStencil(GrRenderTarget* target) SK_OVERRIDE {} 145 void clearStencil(GrRenderTarget* target) SK_OVERRIDE {}
146 146
147 void didAddGpuTraceMarker() SK_OVERRIDE { } 147 void didAddGpuTraceMarker() SK_OVERRIDE { }
148 148
149 void didRemoveGpuTraceMarker() SK_OVERRIDE { } 149 void didRemoveGpuTraceMarker() SK_OVERRIDE { }
150 150
151 typedef GrGpu INHERITED; 151 typedef GrGpu INHERITED;
152 }; 152 };
153 153
(...skipping 14 matching lines...) Expand all
168 // these objects are required for any of tests that use this context. TODO: make stop allocating 168 // these objects are required for any of tests that use this context. TODO: make stop allocating
169 // resources in the buffer pools. 169 // resources in the buffer pools.
170 SkDELETE(fDrawBuffer); 170 SkDELETE(fDrawBuffer);
171 SkDELETE(fDrawBufferVBAllocPool); 171 SkDELETE(fDrawBufferVBAllocPool);
172 SkDELETE(fDrawBufferIBAllocPool); 172 SkDELETE(fDrawBufferIBAllocPool);
173 173
174 fDrawBuffer = NULL; 174 fDrawBuffer = NULL;
175 fDrawBufferVBAllocPool = NULL; 175 fDrawBufferVBAllocPool = NULL;
176 fDrawBufferIBAllocPool = NULL; 176 fDrawBufferIBAllocPool = NULL;
177 } 177 }
OLDNEW
« no previous file with comments | « src/gpu/GrProgramDesc.h ('k') | src/gpu/gl/GrGLProgram.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698