c1541ae25f
The main thrust of this CL is to bring the GrContextThreadSafeProxy into the fold. Change-Id: I8f457d5b75c69f89beac3a0035b1c05ba5d3b931 Reviewed-on: https://skia-review.googlesource.com/c/188622 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
35 lines
780 B
C++
35 lines
780 B
C++
/*
|
|
* Copyright 2019 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef GrImageContext_DEFINED
|
|
#define GrImageContext_DEFINED
|
|
|
|
#include "GrContext_Base.h"
|
|
|
|
class GrImageContextPriv;
|
|
|
|
class SK_API GrImageContext : public GrContext_Base {
|
|
public:
|
|
~GrImageContext() override;
|
|
|
|
// Provides access to functions that aren't part of the public API.
|
|
GrImageContextPriv priv();
|
|
const GrImageContextPriv priv() const;
|
|
|
|
protected:
|
|
friend class GrImageContextPriv; // for hidden functions
|
|
|
|
GrImageContext(GrBackendApi, const GrContextOptions&, uint32_t uniqueID);
|
|
|
|
GrImageContext* asImageContext() override { return this; }
|
|
|
|
private:
|
|
typedef GrContext_Base INHERITED;
|
|
};
|
|
|
|
#endif
|