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

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

Issue 846303002: Make uncached textures uncached from the get go. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add comment Created 5 years, 11 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/GrStencilBuffer.h ('k') | src/gpu/GrTexture.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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 const SkIRect& srcRect, 80 const SkIRect& srcRect,
81 const SkIPoint& dstPoint) SK_OVERRIDE { return false; }; 81 const SkIPoint& dstPoint) SK_OVERRIDE { return false; };
82 82
83 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) SK_OV ERRIDE { 83 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) SK_OV ERRIDE {
84 return false; 84 return false;
85 } 85 }
86 86
87 private: 87 private:
88 void onResetContext(uint32_t resetBits) SK_OVERRIDE {} 88 void onResetContext(uint32_t resetBits) SK_OVERRIDE {}
89 89
90 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, 90 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, bool budgeted, const v oid* srcData,
91 const void* srcData,
92 size_t rowBytes) SK_OVERRIDE { 91 size_t rowBytes) SK_OVERRIDE {
93 return NULL; 92 return NULL;
94 } 93 }
95 94
96 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, 95 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, bool budgete d,
97 const void* srcData) SK_OVERRIDE { 96 const void* srcData) SK_OVERRIDE {
98 return NULL; 97 return NULL;
99 } 98 }
100 99
101 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) SK_OVERRIDE { r eturn NULL; } 100 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) SK_OVERRIDE { r eturn NULL; }
102 101
103 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&) SK_OVERRIDE { 102 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&) SK_OVERRIDE {
104 return NULL; 103 return NULL;
105 } 104 }
106 105
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 // 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
180 // resources in the buffer pools. 179 // resources in the buffer pools.
181 SkDELETE(fDrawBuffer); 180 SkDELETE(fDrawBuffer);
182 SkDELETE(fDrawBufferVBAllocPool); 181 SkDELETE(fDrawBufferVBAllocPool);
183 SkDELETE(fDrawBufferIBAllocPool); 182 SkDELETE(fDrawBufferIBAllocPool);
184 183
185 fDrawBuffer = NULL; 184 fDrawBuffer = NULL;
186 fDrawBufferVBAllocPool = NULL; 185 fDrawBufferVBAllocPool = NULL;
187 fDrawBufferIBAllocPool = NULL; 186 fDrawBufferIBAllocPool = NULL;
188 } 187 }
OLDNEW
« no previous file with comments | « src/gpu/GrStencilBuffer.h ('k') | src/gpu/GrTexture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698