/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef GrOnFlushResourceProvider_DEFINED #define GrOnFlushResourceProvider_DEFINED #include "src/gpu/AtlasTypes.h" class GrCaps; class GrDrawingManager; class GrOnFlushResourceProvider; class GrSurfaceProxy; /* * This is the base class from which all pre-flush callback objects must be derived. It * provides the "preFlush" / "postFlush" interface. */ class GrOnFlushCallbackObject { … }; /* * This class is a shallow wrapper around the drawing manager. It is passed into the * onFlush callbacks and is intended to limit the functionality available to them. * It should never have additional data members or virtual methods. */ class GrOnFlushResourceProvider { … }; #endif