blob: 54395e213b4e2f346e742614503394c06b1e2e82 [file] [log] [blame]
Robert Phillips4217ea72019-01-30 13:08:28 -05001/*
2 * Copyright 2019 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef GrImageContext_DEFINED
9#define GrImageContext_DEFINED
10
11#include "GrContext_Base.h"
12
13class GrImageContextPriv;
14
15class SK_API GrImageContext : public GrContext_Base {
16public:
17 ~GrImageContext() override;
18
19 // Provides access to functions that aren't part of the public API.
20 GrImageContextPriv priv();
21 const GrImageContextPriv priv() const;
22
23protected:
24 friend class GrImageContextPriv; // for hidden functions
25
26 GrImageContext(GrBackendApi backend, uint32_t uniqueID);
27
28 GrImageContext* asImageContext() override { return this; }
29
30private:
31 typedef GrContext_Base INHERITED;
32};
33
34#endif