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

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

Issue 709003006: cleanup friends in GrGpu (Closed) Base URL: https://skia.googlesource.com/skia.git@cleanup_geometry_handling
Patch Set: Created 6 years, 1 month 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/GrGpuGL.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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 } 104 }
105 105
106 virtual GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) SK_ OVERRIDE { 106 virtual GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) SK_ OVERRIDE {
107 return NULL; 107 return NULL;
108 } 108 }
109 109
110 virtual GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) SK_OV ERRIDE { 110 virtual GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) SK_OV ERRIDE {
111 return NULL; 111 return NULL;
112 } 112 }
113 113
114 virtual void onGpuClear(GrRenderTarget*, const SkIRect* rect, GrColor color, 114 virtual void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color,
115 bool canIgnoreRect) SK_OVERRIDE { } 115 bool canIgnoreRect) SK_OVERRIDE { }
116 116
117 virtual void onClearStencilClip(GrRenderTarget*, 117 virtual void onClearStencilClip(GrRenderTarget*,
118 const SkIRect& rect, 118 const SkIRect& rect,
119 bool insideClip) SK_OVERRIDE { } 119 bool insideClip) SK_OVERRIDE { }
120 120
121 virtual void onGpuDraw(const GrDrawTarget::DrawInfo&) SK_OVERRIDE { } 121 virtual void onDraw(const GrDrawTarget::DrawInfo&) SK_OVERRIDE { }
122 virtual bool onReadPixels(GrRenderTarget* target, 122 virtual bool onReadPixels(GrRenderTarget* target,
123 int left, int top, int width, int height, 123 int left, int top, int width, int height,
124 GrPixelConfig, 124 GrPixelConfig,
125 void* buffer, 125 void* buffer,
126 size_t rowBytes) SK_OVERRIDE { 126 size_t rowBytes) SK_OVERRIDE {
127 return false; 127 return false;
128 } 128 }
129 129
130 virtual bool onWriteTexturePixels(GrTexture* texture, 130 virtual bool onWriteTexturePixels(GrTexture* texture,
131 int left, int top, int width, int height, 131 int left, int top, int width, int height,
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 // these objects are required for any of tests that use this context. TODO: make stop allocating 178 // these objects are required for any of tests that use this context. TODO: make stop allocating
179 // resources in the buffer pools. 179 // resources in the buffer pools.
180 SkDELETE(fDrawBuffer); 180 SkDELETE(fDrawBuffer);
181 SkDELETE(fDrawBufferVBAllocPool); 181 SkDELETE(fDrawBufferVBAllocPool);
182 SkDELETE(fDrawBufferIBAllocPool); 182 SkDELETE(fDrawBufferIBAllocPool);
183 183
184 fDrawBuffer = NULL; 184 fDrawBuffer = NULL;
185 fDrawBufferVBAllocPool = NULL; 185 fDrawBufferVBAllocPool = NULL;
186 fDrawBufferIBAllocPool = NULL; 186 fDrawBufferIBAllocPool = NULL;
187 } 187 }
OLDNEW
« no previous file with comments | « src/gpu/GrInOrderDrawBuffer.cpp ('k') | src/gpu/gl/GrGpuGL.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698