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

Side by Side Diff: src/gpu/GrSurfacePriv.h

Issue 938383004: Dynamically create stencil buffer when needed. (Closed) Base URL: https://skia.googlesource.com/skia.git@bigstencil
Patch Set: Actually save file before uploading Created 5 years, 10 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/GrStencilAndCoverPathRenderer.cpp ('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 * Copyright 2014 Google Inc. 2 * Copyright 2014 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 GrSurfacePriv_DEFINED 8 #ifndef GrSurfacePriv_DEFINED
9 #define GrSurfacePriv_DEFINED 9 #define GrSurfacePriv_DEFINED
10 10
(...skipping 16 matching lines...) Expand all
27 * Write the contents of the surface to a PNG. Returns true if successful. 27 * Write the contents of the surface to a PNG. Returns true if successful.
28 * @param filename Full path to desired file 28 * @param filename Full path to desired file
29 */ 29 */
30 bool savePixels(const char* filename) { return fSurface->savePixels(filename ); } 30 bool savePixels(const char* filename) { return fSurface->savePixels(filename ); }
31 31
32 bool hasPendingRead() const { return fSurface->hasPendingRead(); } 32 bool hasPendingRead() const { return fSurface->hasPendingRead(); }
33 bool hasPendingWrite() const { return fSurface->hasPendingWrite(); } 33 bool hasPendingWrite() const { return fSurface->hasPendingWrite(); }
34 bool hasPendingIO() const { return fSurface->hasPendingIO(); } 34 bool hasPendingIO() const { return fSurface->hasPendingIO(); }
35 35
36 private: 36 private:
37 GrSurfacePriv(GrSurface* surface) : fSurface(surface) { } 37 explicit GrSurfacePriv(GrSurface* surface) : fSurface(surface) {}
38 GrSurfacePriv(const GrSurfacePriv& that) : fSurface(that.fSurface) { } 38 GrSurfacePriv(const GrSurfacePriv&); // unimpl
39 GrSurfacePriv& operator=(const GrSurface&); // unimpl 39 GrSurfacePriv& operator=(const GrSurfacePriv&); // unimpl
40 40
41 // No taking addresses of this type. 41 // No taking addresses of this type.
42 const GrSurfacePriv* operator&() const; 42 const GrSurfacePriv* operator&() const;
43 GrSurfacePriv* operator&(); 43 GrSurfacePriv* operator&();
44 44
45 GrSurface* fSurface; 45 GrSurface* fSurface;
46 46
47 friend class GrSurface; // to construct/copy this type. 47 friend class GrSurface; // to construct/copy this type.
48 }; 48 };
49 49
50 inline GrSurfacePriv GrSurface::surfacePriv() { return GrSurfacePriv(this); } 50 inline GrSurfacePriv GrSurface::surfacePriv() { return GrSurfacePriv(this); }
51 51
52 inline const GrSurfacePriv GrSurface::surfacePriv() const { 52 inline const GrSurfacePriv GrSurface::surfacePriv() const {
53 return GrSurfacePriv(const_cast<GrSurface*>(this)); 53 return GrSurfacePriv(const_cast<GrSurface*>(this));
54 } 54 }
55 55
56 #endif 56 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrStencilAndCoverPathRenderer.cpp ('k') | src/gpu/GrTexture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698