Robert Phillips | 4217ea7 | 2019-01-30 13:08:28 -0500 | [diff] [blame^] | 1 | /* |
| 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 | |
| 13 | class GrImageContextPriv; |
| 14 | |
| 15 | class SK_API GrImageContext : public GrContext_Base { |
| 16 | public: |
| 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 | |
| 23 | protected: |
| 24 | friend class GrImageContextPriv; // for hidden functions |
| 25 | |
| 26 | GrImageContext(GrBackendApi backend, uint32_t uniqueID); |
| 27 | |
| 28 | GrImageContext* asImageContext() override { return this; } |
| 29 | |
| 30 | private: |
| 31 | typedef GrContext_Base INHERITED; |
| 32 | }; |
| 33 | |
| 34 | #endif |