diff options
author | robertphillips <robertphillips@google.com> | 2016-03-02 08:53:12 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-02 08:53:12 -0800 |
commit | 8b8f36fc49b88ed369523730a4f1f26bb2094a75 (patch) | |
tree | ee476586e0a78df4bae5223ae9ec459d97241d9f /src/gpu/GrDrawContextPriv.h | |
parent | 86c60758e9e4f9e203d7462cb22b2a245a0f51bd (diff) |
Revert of Begin weaning GrClipMaskManager off of GrDrawTarget (take 2) (patchset #7 id:120001 of https://codereview.chromium.org/1754563003/ )
Reason for revert:
fAuditTrail
Original issue's description:
> Begin weaning GrClipMaskManager off of GrDrawTarget (take 2)
>
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1754563003
>
> Committed: https://skia.googlesource.com/skia/+/86c60758e9e4f9e203d7462cb22b2a245a0f51bd
TBR=joshualitt@chromium.org,bsalomon@google.com,joshualitt@google.com
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
Review URL: https://codereview.chromium.org/1754353002
Diffstat (limited to 'src/gpu/GrDrawContextPriv.h')
-rw-r--r-- | src/gpu/GrDrawContextPriv.h | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/src/gpu/GrDrawContextPriv.h b/src/gpu/GrDrawContextPriv.h deleted file mode 100644 index 935b631a26..0000000000 --- a/src/gpu/GrDrawContextPriv.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2016 Google Inc. - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#ifndef GrDrawContextPriv_DEFINED -#define GrDrawContextPriv_DEFINED - -#include "GrDrawContext.h" - -class GrStencilSettings; - -/** Class that adds methods to GrDrawContext that are only intended for use internal to Skia. - This class is purely a privileged window into GrDrawContext. It should never have additional - data members or virtual methods. */ -class GrDrawContextPriv { -public: - bool drawAndStencilRect(const SkIRect* scissorRect, - const GrStencilSettings&, - SkRegion::Op op, - bool invert, - bool doAA, - const SkMatrix& viewMatrix, - const SkRect&); - - bool drawAndStencilPath(const SkIRect* scissorRect, - const GrStencilSettings&, - SkRegion::Op op, - bool invert, - bool doAA, - const SkMatrix& viewMatrix, - const SkPath&); - - void testingOnly_drawBatch(const GrPipelineBuilder& pipelineBuilder, - GrDrawBatch* batch); - -private: - explicit GrDrawContextPriv(GrDrawContext* drawContext) : fDrawContext(drawContext) {} - GrDrawContextPriv(const GrRenderTargetPriv&) {} // unimpl - GrDrawContextPriv& operator=(const GrRenderTargetPriv&); // unimpl - - // No taking addresses of this type. - const GrDrawContextPriv* operator&() const; - GrDrawContextPriv* operator&(); - - GrDrawContext* fDrawContext; - - friend class GrDrawContext; // to construct/copy this type. -}; - -inline GrDrawContextPriv GrDrawContext::drawContextPriv() { return GrDrawContextPriv(this); } - -inline const GrDrawContextPriv GrDrawContext::drawContextPriv () const { - return GrDrawContextPriv(const_cast<GrDrawContext*>(this)); -} - -#endif - |