aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-05-03 05:06:29 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-05-03 05:06:29 -0700
commitde5bf0cfeca908b81a28cc50065f7bc2da3d2fd1 (patch)
treee208e4b36c04587300639bfaf50ff21799c4a1a3 /include/gpu
parent1cb00e42bff455e23f6883bf09680438fa631224 (diff)
Add Gr*Proxy classes
Diffstat (limited to 'include/gpu')
-rw-r--r--include/gpu/GrContext.h7
-rw-r--r--include/gpu/GrRenderTarget.h3
2 files changed, 4 insertions, 6 deletions
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index cb407aa5bf..6f5ca981e5 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -194,16 +194,11 @@ public:
*/
sk_sp<GrDrawContext> drawContext(sk_sp<GrRenderTarget> rt, const SkSurfaceProps* = nullptr);
- enum BackingFit {
- kTight_BackingFit,
- kLoose_BackingFit
- };
-
/**
* Create both a GrRenderTarget and a matching GrDrawContext to wrap it.
* The created GrRenderTarget will always be budgeted.
*/
- sk_sp<GrDrawContext> newDrawContext(BackingFit fit,
+ sk_sp<GrDrawContext> newDrawContext(SkBackingFit fit,
int width, int height,
GrPixelConfig config,
int sampleCnt = 0,
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)