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

Side by Side Diff: include/gpu/GrRenderTarget.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 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrRenderTarget_DEFINED 8 #ifndef GrRenderTarget_DEFINED
9 #define GrRenderTarget_DEFINED 9 #define GrRenderTarget_DEFINED
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 virtual const GrRenderTarget* asRenderTarget() const SK_OVERRIDE { 42 virtual const GrRenderTarget* asRenderTarget() const SK_OVERRIDE {
43 return this; 43 return this;
44 } 44 }
45 45
46 virtual bool readPixels(int left, int top, int width, int height, 46 virtual bool readPixels(int left, int top, int width, int height,
47 GrPixelConfig config, 47 GrPixelConfig config,
48 void* buffer, 48 void* buffer,
49 size_t rowBytes = 0, 49 size_t rowBytes = 0,
50 uint32_t pixelOpsFlags = 0) SK_OVERRIDE; 50 uint32_t pixelOpsFlags = 0) SK_OVERRIDE;
51 51
52 virtual void writePixels(int left, int top, int width, int height, 52 virtual bool writePixels(int left, int top, int width, int height,
53 GrPixelConfig config, 53 GrPixelConfig config,
54 const void* buffer, 54 const void* buffer,
55 size_t rowBytes = 0, 55 size_t rowBytes = 0,
56 uint32_t pixelOpsFlags = 0) SK_OVERRIDE; 56 uint32_t pixelOpsFlags = 0) SK_OVERRIDE;
57 57
58 // GrRenderTarget 58 // GrRenderTarget
59 /** 59 /**
60 * If this RT is multisampled, this is the multisample buffer 60 * If this RT is multisampled, this is the multisample buffer
61 * @return the 3D API's handle to this object (e.g. FBO ID in OpenGL) 61 * @return the 3D API's handle to this object (e.g. FBO ID in OpenGL)
62 */ 62 */
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 168
169 GrStencilBuffer* fStencilBuffer; 169 GrStencilBuffer* fStencilBuffer;
170 GrTexture* fTexture; // not ref'ed 170 GrTexture* fTexture; // not ref'ed
171 171
172 SkIRect fResolveRect; 172 SkIRect fResolveRect;
173 173
174 typedef GrSurface INHERITED; 174 typedef GrSurface INHERITED;
175 }; 175 };
176 176
177 #endif 177 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698