• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 GrRecordingContext_DEFINED
9 #define GrRecordingContext_DEFINED
10 
11 #include "GrImageContext.h"
12 
13 class GrRecordingContextPriv;
14 
15 class SK_API GrRecordingContext : public GrImageContext {
16 public:
17     ~GrRecordingContext() override;
18 
19     // Provides access to functions that aren't part of the public API.
20     GrRecordingContextPriv priv();
21     const GrRecordingContextPriv priv() const;
22 
23 protected:
24     friend class GrRecordingContextPriv; // for hidden functions
25 
26     GrRecordingContext(GrBackendApi backend, uint32_t uniqueID);
27 
asRecordingContext()28     GrRecordingContext* asRecordingContext() override { return this; }
29 
30 private:
31     typedef GrImageContext INHERITED;
32 };
33 
34 #endif
35