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

Side by Side Diff: src/gpu/GrRenderTargetPriv.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 | « src/gpu/GrRenderTarget.cpp ('k') | src/gpu/GrScissorState.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 2015 Google Inc. 2 * Copyright 2015 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 GrRenderTargetPriv_DEFINED 8 #ifndef GrRenderTargetPriv_DEFINED
9 #define GrRenderTargetPriv_DEFINED 9 #define GrRenderTargetPriv_DEFINED
10 10
(...skipping 20 matching lines...) Expand all
31 bool attachStencilAttachment(GrStencilAttachment* stencil); 31 bool attachStencilAttachment(GrStencilAttachment* stencil);
32 32
33 int numStencilBits() const; 33 int numStencilBits() const;
34 34
35 const GrGpu::MultisampleSpecs& getMultisampleSpecs(const GrStencilSettings& stencil) const; 35 const GrGpu::MultisampleSpecs& getMultisampleSpecs(const GrStencilSettings& stencil) const;
36 uint8_t& accessMultisampleSpecsID() { return fRenderTarget->fMultisampleSpec sID; } 36 uint8_t& accessMultisampleSpecsID() { return fRenderTarget->fMultisampleSpec sID; }
37 37
38 typedef GrRenderTarget::Flags Flags; 38 typedef GrRenderTarget::Flags Flags;
39 39
40 Flags flags() const { return fRenderTarget->fFlags; } 40 Flags flags() const { return fRenderTarget->fFlags; }
41 int maxWindowRectangles() const; 41 bool supportsWindowRectangles() const { return this->flags() & Flags::kWindo wRectsSupport; }
42 42
43 private: 43 private:
44 explicit GrRenderTargetPriv(GrRenderTarget* renderTarget) : fRenderTarget(re nderTarget) {} 44 explicit GrRenderTargetPriv(GrRenderTarget* renderTarget) : fRenderTarget(re nderTarget) {}
45 GrRenderTargetPriv(const GrRenderTargetPriv&) {} // unimpl 45 GrRenderTargetPriv(const GrRenderTargetPriv&) {} // unimpl
46 GrRenderTargetPriv& operator=(const GrRenderTargetPriv&); // unimpl 46 GrRenderTargetPriv& operator=(const GrRenderTargetPriv&); // unimpl
47 47
48 // No taking addresses of this type. 48 // No taking addresses of this type.
49 const GrRenderTargetPriv* operator&() const; 49 const GrRenderTargetPriv* operator&() const;
50 GrRenderTargetPriv* operator&(); 50 GrRenderTargetPriv* operator&();
51 51
52 GrRenderTarget* fRenderTarget; 52 GrRenderTarget* fRenderTarget;
53 53
54 friend class GrRenderTarget; // to construct/copy this type. 54 friend class GrRenderTarget; // to construct/copy this type.
55 }; 55 };
56 56
57 inline GrRenderTargetPriv GrRenderTarget::renderTargetPriv() { return GrRenderTa rgetPriv(this); } 57 inline GrRenderTargetPriv GrRenderTarget::renderTargetPriv() { return GrRenderTa rgetPriv(this); }
58 58
59 inline const GrRenderTargetPriv GrRenderTarget::renderTargetPriv () const { 59 inline const GrRenderTargetPriv GrRenderTarget::renderTargetPriv () const {
60 return GrRenderTargetPriv(const_cast<GrRenderTarget*>(this)); 60 return GrRenderTargetPriv(const_cast<GrRenderTarget*>(this));
61 } 61 }
62 62
63 #endif 63 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrRenderTarget.cpp ('k') | src/gpu/GrScissorState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698