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

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

Issue 2299523004: Flush some non-substantive Ganesh changes (Closed)
Patch Set: Created 4 years, 3 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 | « include/gpu/GrDrawContext.h ('k') | include/private/GrSurfaceProxy.h » ('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 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 15 matching lines...) Expand all
26 int width() const { return fDesc.fWidth; } 26 int width() const { return fDesc.fWidth; }
27 27
28 /** 28 /**
29 * Retrieves the height of the surface. 29 * Retrieves the height of the surface.
30 */ 30 */
31 int height() const { return fDesc.fHeight; } 31 int height() const { return fDesc.fHeight; }
32 32
33 /** 33 /**
34 * Helper that gets the width and height of the surface as a bounding rectan gle. 34 * Helper that gets the width and height of the surface as a bounding rectan gle.
35 */ 35 */
36 void getBoundsRect(SkRect* rect) const { rect->setWH(SkIntToScalar(this->wid th()), 36 SkRect getBoundsRect() const { return SkRect::MakeIWH(this->width(), this->h eight()); }
37 SkIntToScalar(this->hei ght())); }
38 37
39 GrSurfaceOrigin origin() const { 38 GrSurfaceOrigin origin() const {
40 SkASSERT(kTopLeft_GrSurfaceOrigin == fDesc.fOrigin || kBottomLeft_GrSurf aceOrigin == fDesc.fOrigin); 39 SkASSERT(kTopLeft_GrSurfaceOrigin == fDesc.fOrigin || kBottomLeft_GrSurf aceOrigin == fDesc.fOrigin);
41 return fDesc.fOrigin; 40 return fDesc.fOrigin;
42 } 41 }
43 42
44 /** 43 /**
45 * Retrieves the pixel config specified when the surface was created. 44 * Retrieves the pixel config specified when the surface was created.
46 * For render targets this can be kUnknown_GrPixelConfig 45 * For render targets this can be kUnknown_GrPixelConfig
47 * if client asked us to render to a target that has a pixel 46 * if client asked us to render to a target that has a pixel
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 } 162 }
164 } 163 }
165 164
166 ReleaseProc fReleaseProc; 165 ReleaseProc fReleaseProc;
167 ReleaseCtx fReleaseCtx; 166 ReleaseCtx fReleaseCtx;
168 167
169 typedef GrGpuResource INHERITED; 168 typedef GrGpuResource INHERITED;
170 }; 169 };
171 170
172 #endif 171 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrDrawContext.h ('k') | include/private/GrSurfaceProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698