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

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

Issue 753783003: Remove GrSurface::isSameAs (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more Created 6 years 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 | « no previous file | src/gpu/GrDrawTarget.cpp » ('j') | tests/GrSurfaceTest.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 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 8
9 #ifndef GrSurface_DEFINED 9 #ifndef GrSurface_DEFINED
10 #define GrSurface_DEFINED 10 #define GrSurface_DEFINED
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 inline GrSurfacePriv surfacePriv(); 127 inline GrSurfacePriv surfacePriv();
128 inline const GrSurfacePriv surfacePriv() const; 128 inline const GrSurfacePriv surfacePriv() const;
129 129
130 protected: 130 protected:
131 // Methods made available via GrSurfacePriv 131 // Methods made available via GrSurfacePriv
132 SkImageInfo info() const; 132 SkImageInfo info() const;
133 bool savePixels(const char* filename); 133 bool savePixels(const char* filename);
134 bool hasPendingRead() const; 134 bool hasPendingRead() const;
135 bool hasPendingWrite() const; 135 bool hasPendingWrite() const;
136 bool hasPendingIO() const; 136 bool hasPendingIO() const;
137 bool isSameAs(const GrSurface* other) const;
138 137
139 // Provides access to methods that should be public within Skia code. 138 // Provides access to methods that should be public within Skia code.
140 friend class GrSurfacePriv; 139 friend class GrSurfacePriv;
141 140
142 GrSurface(GrGpu* gpu, bool isWrapped, const GrSurfaceDesc& desc) 141 GrSurface(GrGpu* gpu, bool isWrapped, const GrSurfaceDesc& desc)
143 : INHERITED(gpu, isWrapped) 142 : INHERITED(gpu, isWrapped)
144 , fDesc(desc) { 143 , fDesc(desc) {
145 } 144 }
146 145
147 GrSurfaceDesc fDesc; 146 GrSurfaceDesc fDesc;
148 147
149 private: 148 private:
150 typedef GrGpuResource INHERITED; 149 typedef GrGpuResource INHERITED;
151 }; 150 };
152 151
153 #endif 152 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrDrawTarget.cpp » ('j') | tests/GrSurfaceTest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698