5ed4423090
Changes GrPathRenderer::canDrawPath to return a 'CanDrawPath' enum, which contains a new kAsBackup value that means "I'm better than SW, but give the path renderers below me a chance first." Bug: skia: Change-Id: Ia339567800a3127e61b9beaed19504cd504f18af Reviewed-on: https://skia-review.googlesource.com/43761 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Chris Dalton <csmartdalton@google.com>
31 lines
648 B
C++
31 lines
648 B
C++
/*
|
|
* Copyright 2015 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef GrDashLinePathRenderer_DEFINED
|
|
#define GrDashLinePathRenderer_DEFINED
|
|
|
|
#include "GrPathRenderer.h"
|
|
|
|
class GrGpu;
|
|
|
|
class GrDashLinePathRenderer : public GrPathRenderer {
|
|
private:
|
|
CanDrawPath onCanDrawPath(const CanDrawPathArgs&) const override;
|
|
|
|
StencilSupport onGetStencilSupport(const GrShape&) const override {
|
|
return kNoSupport_StencilSupport;
|
|
}
|
|
|
|
bool onDrawPath(const DrawPathArgs&) override;
|
|
|
|
sk_sp<GrGpu> fGpu;
|
|
typedef GrPathRenderer INHERITED;
|
|
};
|
|
|
|
|
|
#endif
|