diff options
author | Robert Phillips <robertphillips@google.com> | 2017-12-13 11:50:22 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-12-13 18:24:30 +0000 |
commit | e42edcc8ef257d4c430344d6d208e994f20f9320 (patch) | |
tree | 6c894e1995a7b03a74619b185998936dd6f62f9c /src/gpu/GrGpu.h | |
parent | b9042d206ab8762429c61160383094360fb04c7a (diff) |
Add stubbed out GrContext
This CL mainly just:
stores the GrContextOptions in GrContextThreadSafeProxy (so they can be passed on to a stubbed out GrContext)
adds a method to create a stubbed out GrContext that has a GrStubGpu
- the stubbed out GrContext isn't quite ready for prime time yet
Change-Id: I31be6763640e406c5963e6f0714489ac358339e4
Reviewed-on: https://skia-review.googlesource.com/79601
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrGpu.h')
-rw-r--r-- | src/gpu/GrGpu.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h index e68e683499..3f3610898a 100644 --- a/src/gpu/GrGpu.h +++ b/src/gpu/GrGpu.h @@ -8,6 +8,7 @@ #ifndef GrGpu_DEFINED #define GrGpu_DEFINED +#include "GrCaps.h" #include "GrGpuCommandBuffer.h" #include "GrProgramDesc.h" #include "GrSwizzle.h" @@ -48,8 +49,7 @@ public: * not supported (at compile-time or run-time) this returns nullptr. The context will not be * fully constructed and should not be used by GrGpu until after this function returns. */ - static sk_sp<GrGpu> Make(GrBackend, GrBackendContext, const GrContextOptions&, - GrContext* context); + static sk_sp<GrGpu> Make(GrBackend, GrBackendContext, const GrContextOptions&, GrContext*); //////////////////////////////////////////////////////////////////////////// @@ -63,6 +63,7 @@ public: * Gets the capabilities of the draw target. */ const GrCaps* caps() const { return fCaps.get(); } + sk_sp<const GrCaps> refCaps() const { return fCaps; } GrPathRendering* pathRendering() { return fPathRendering.get(); } |