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: include/private/GrSurfaceProxy.h

Issue 2312173002: Revert of Improve usage of window rectangles (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_drawsinreducedclip
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/GrTypesPriv.h ('k') | src/gpu/GrAppliedClip.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 2016 Google Inc. 2 * Copyright 2016 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 GrSurfaceProxy_DEFINED 8 #ifndef GrSurfaceProxy_DEFINED
9 #define GrSurfaceProxy_DEFINED 9 #define GrSurfaceProxy_DEFINED
10 10
11 #include "GrGpuResource.h" 11 #include "GrGpuResource.h"
12 #include "SkRect.h"
13 12
14 class GrTextureProxy; 13 class GrTextureProxy;
15 class GrRenderTargetProxy; 14 class GrRenderTargetProxy;
16 15
17 class GrSurfaceProxy : public GrIORef<GrSurfaceProxy> { 16 class GrSurfaceProxy : public GrIORef<GrSurfaceProxy> {
18 public: 17 public:
19 const GrSurfaceDesc& desc() const { return fDesc; } 18 const GrSurfaceDesc& desc() const { return fDesc; }
20 19
21 GrSurfaceOrigin origin() const { 20 GrSurfaceOrigin origin() const {
22 SkASSERT(kTopLeft_GrSurfaceOrigin == fDesc.fOrigin || 21 SkASSERT(kTopLeft_GrSurfaceOrigin == fDesc.fOrigin ||
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 void notifyAllCntsAreZero(CntType) const { delete this; } 82 void notifyAllCntsAreZero(CntType) const { delete this; }
84 bool notifyRefCountIsZero() const { return true; } 83 bool notifyRefCountIsZero() const { return true; }
85 84
86 typedef GrIORef<GrSurfaceProxy> INHERITED; 85 typedef GrIORef<GrSurfaceProxy> INHERITED;
87 86
88 // to access notifyAllCntsAreZero and notifyRefCntIsZero. 87 // to access notifyAllCntsAreZero and notifyRefCntIsZero.
89 friend class GrIORef<GrSurfaceProxy>; 88 friend class GrIORef<GrSurfaceProxy>;
90 }; 89 };
91 90
92 #endif 91 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrTypesPriv.h ('k') | src/gpu/GrAppliedClip.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698