Lines Matching defs:GrContext

49 class SK_API GrContext : public SkRefCnt {
51 SK_DECLARE_INST_COUNT(GrContext)
63 * Creates a GrContext for a backend context.
65 static GrContext* Create(GrBackend, GrBackendContext, const Options* opts = NULL);
67 virtual ~GrContext();
70 * The GrContext normally assumes that no outsider is setting state
80 * Callback function to allow classes to cleanup on GrContext destruction.
83 typedef void (*PFCleanUpFunc)(const GrContext* context, void* info);
86 * Add a function to be called from within GrContext's destructor.
101 * now invalid. Should be called even when GrContext is no longer going to
103 * 1) ~GrContext will not try to free the objects in the 3D API.
104 * 2) Any GrGpuResources created by this GrContext that outlive
107 * Content drawn since the last GrContext::flush() may be lost. After this
108 * function is called the only valid action on the GrContext or
581 * through a GrContext that it knows the user will never see. This flag
600 /** The GrContext will not be flushed. This means that the read or write may occur before
715 * using the backend API directly. GrContext will detect when it must
736 AutoRenderTarget(GrContext* context, GrRenderTarget* target) {
742 AutoRenderTarget(GrContext* context) {
754 GrContext* fContext;
781 void setPreConcat(GrContext* context, const SkMatrix& preConcat, GrPaint* paint = NULL) {
795 bool setIdentity(GrContext* context, GrPaint* paint = NULL) {
815 bool set(GrContext* context, const SkMatrix& newMatrix, GrPaint* paint = NULL) {
861 GrContext* fContext;
874 AutoClip(GrContext* context, InitialClip initialState)
883 AutoClip(GrContext* context, const SkRect& newClipRect)
898 GrContext* fContext;
907 AutoWideOpenIdentityDraw(GrContext* ctx, GrRenderTarget* rt)
954 * This returns a copy of the the GrContext::Options that was passed to the
1013 // Set by OverbudgetCB() to request that GrContext flush before exiting a draw.
1034 GrContext(const Options&); // init must be called after the constructor.
1073 * This callback allows the resource cache to callback into the GrContext
1092 GrAutoScratchTexture(GrContext* context,
1094 GrContext::ScratchTexMatch match = GrContext::kApprox_ScratchTexMatch)
1143 GrTexture* set(GrContext* context,
1145 GrContext::ScratchTexMatch match = GrContext::kApprox_ScratchTexMatch) {
1163 GrContext* fContext;