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

Side by Side Diff: include/gpu/GrTexture.h

Issue 638403003: Remove uses of GrAutoScratchTexture. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: comment change Created 6 years, 2 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
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 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 #ifndef GrTexture_DEFINED 9 #ifndef GrTexture_DEFINED
10 #define GrTexture_DEFINED 10 #define GrTexture_DEFINED
(...skipping 14 matching lines...) Expand all
25 */ 25 */
26 virtual size_t gpuMemorySize() const SK_OVERRIDE; 26 virtual size_t gpuMemorySize() const SK_OVERRIDE;
27 27
28 // GrSurface overrides 28 // GrSurface overrides
29 virtual bool readPixels(int left, int top, int width, int height, 29 virtual bool readPixels(int left, int top, int width, int height,
30 GrPixelConfig config, 30 GrPixelConfig config,
31 void* buffer, 31 void* buffer,
32 size_t rowBytes = 0, 32 size_t rowBytes = 0,
33 uint32_t pixelOpsFlags = 0) SK_OVERRIDE; 33 uint32_t pixelOpsFlags = 0) SK_OVERRIDE;
34 34
35 virtual void writePixels(int left, int top, int width, int height, 35 virtual bool writePixels(int left, int top, int width, int height,
36 GrPixelConfig config, 36 GrPixelConfig config,
37 const void* buffer, 37 const void* buffer,
38 size_t rowBytes = 0, 38 size_t rowBytes = 0,
39 uint32_t pixelOpsFlags = 0) SK_OVERRIDE; 39 uint32_t pixelOpsFlags = 0) SK_OVERRIDE;
40 40
41 virtual GrTexture* asTexture() SK_OVERRIDE { return this; } 41 virtual GrTexture* asTexture() SK_OVERRIDE { return this; }
42 virtual const GrTexture* asTexture() const SK_OVERRIDE { return this; } 42 virtual const GrTexture* asTexture() const SK_OVERRIDE { return this; }
43 virtual GrRenderTarget* asRenderTarget() SK_OVERRIDE { return fRenderTarget. get(); } 43 virtual GrRenderTarget* asRenderTarget() SK_OVERRIDE { return fRenderTarget. get(); }
44 virtual const GrRenderTarget* asRenderTarget() const SK_OVERRIDE { return fR enderTarget.get(); } 44 virtual const GrRenderTarget* asRenderTarget() const SK_OVERRIDE { return fR enderTarget.get(); }
45 45
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 fTexture.reset(SkSafeRef(texture)); 151 fTexture.reset(SkSafeRef(texture));
152 return texture; 152 return texture;
153 } 153 }
154 154
155 private: 155 private:
156 SkAutoTUnref<GrTexture> fTexture; 156 SkAutoTUnref<GrTexture> fTexture;
157 SkIPoint fOffset; 157 SkIPoint fOffset;
158 }; 158 };
159 159
160 #endif 160 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698