aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrRenderTargetPriv.h
diff options
context:
space:
mode:
authorGravatar cdalton <cdalton@nvidia.com>2016-03-07 13:58:26 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-07 13:58:26 -0800
commit28f45b949acc746849100fbe112ee5280f0594c9 (patch)
treeb350d442680ef996ab6097433ab0cf960d3680b6 /src/gpu/GrRenderTargetPriv.h
parentb3b13b7edeabad4c8e53b0d309b0a44668d1e68f (diff)
Add "sample locations" feature to GrProcessor
Adds a "sample locations" feature to GrProcessor. When enabled, this allows a processor to know inside the shader where all the samples are located. Also adds various infastructure to query, cache, and identify multisample data. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1717393002 Review URL: https://codereview.chromium.org/1717393002
Diffstat (limited to 'src/gpu/GrRenderTargetPriv.h')
-rw-r--r--src/gpu/GrRenderTargetPriv.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/GrRenderTargetPriv.h b/src/gpu/GrRenderTargetPriv.h
index f4931db1db..c6c89336a9 100644
--- a/src/gpu/GrRenderTargetPriv.h
+++ b/src/gpu/GrRenderTargetPriv.h
@@ -9,6 +9,9 @@
#define GrRenderTargetPriv_DEFINED
#include "GrRenderTarget.h"
+#include "GrGpu.h"
+
+class GrStencilSettings;
/** Class that adds methods to GrRenderTarget that are only intended for use internal to Skia.
This class is purely a privileged window into GrRenderTarget. It should never have additional
@@ -27,6 +30,8 @@ public:
*/
bool attachStencilAttachment(GrStencilAttachment* stencil);
+ const GrGpu::MultisampleSpecs& getMultisampleSpecs(const GrStencilSettings& stencil) const;
+
private:
explicit GrRenderTargetPriv(GrRenderTarget* renderTarget) : fRenderTarget(renderTarget) {}
GrRenderTargetPriv(const GrRenderTargetPriv&) {} // unimpl