diff options
author | robertphillips <robertphillips@google.com> | 2016-05-03 08:47:00 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-03 08:47:01 -0700 |
commit | 92605b35efa0155c44d24bd8415b4cc1db8831db (patch) | |
tree | 02df8d88f0f90cdab30ef095629d13d6fd45ea46 /include/gpu/GrRenderTarget.h | |
parent | 871a0484305e9c051e2d78b62e1f2a5fa4bdb3a4 (diff) |
Add Gr*Proxy classes
This isn't wired in anywhere yet.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1937553002
Committed: https://skia.googlesource.com/skia/+/de5bf0cfeca908b81a28cc50065f7bc2da3d2fd1
Review-Url: https://codereview.chromium.org/1937553002
Diffstat (limited to 'include/gpu/GrRenderTarget.h')
-rw-r--r-- | include/gpu/GrRenderTarget.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/gpu/GrRenderTarget.h b/include/gpu/GrRenderTarget.h index eb9f142211..ff75af37e8 100644 --- a/include/gpu/GrRenderTarget.h +++ b/include/gpu/GrRenderTarget.h @@ -11,6 +11,7 @@ #include "GrSurface.h" #include "SkRect.h" +class GrCaps; class GrDrawTarget; class GrStencilAttachment; class GrRenderTargetPriv; @@ -155,6 +156,8 @@ public: void setLastDrawTarget(GrDrawTarget* dt); GrDrawTarget* getLastDrawTarget() { return fLastDrawTarget; } + static SampleConfig ComputeSampleConfig(const GrCaps& caps, int sampleCnt); + protected: GrRenderTarget(GrGpu* gpu, const GrSurfaceDesc& desc, SampleConfig sampleConfig, GrStencilAttachment* stencil = nullptr) |