diff options
author | Ben Wagner <bungeman@google.com> | 2018-03-29 11:46:24 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-03-29 17:18:05 +0000 |
commit | 3746ac21df90e44ed1ed9ec2f1e4694fbcd1d840 (patch) | |
tree | de1fff31711fa4c41e849d0281c8a2c5b400db88 /src/gpu/gl/GrGLPathRange.h | |
parent | c3bc425bd4d630f4c6b69f38473fc69b77a1d5b9 (diff) |
Remove path ranges from gpu.
These appear to have been added to handle glyph paths with nvpr and no
longer appear to be used.
Change-Id: Id75e2e85ab837a5808e7641873d217c844cd827c
Reviewed-on: https://skia-review.googlesource.com/117103
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'src/gpu/gl/GrGLPathRange.h')
-rw-r--r-- | src/gpu/gl/GrGLPathRange.h | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/src/gpu/gl/GrGLPathRange.h b/src/gpu/gl/GrGLPathRange.h deleted file mode 100644 index 7d920105a0..0000000000 --- a/src/gpu/gl/GrGLPathRange.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2014 Google Inc. - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#ifndef GrGLPathRange_DEFINED -#define GrGLPathRange_DEFINED - -#include "../GrPathRange.h" -#include "GrStyle.h" -#include "gl/GrGLTypes.h" - -class GrGLGpu; - -/** - * Currently this represents a range of GL_NV_path_rendering Path IDs. If we - * support other GL path extensions then this would have to have a type enum - * and/or be subclassed. - */ - -class GrGLPathRange : public GrPathRange { -public: - /** - * Initialize a GL path range from a PathGenerator. This class will allocate - * the GPU path objects and initialize them lazily. - */ - GrGLPathRange(GrGLGpu*, PathGenerator*, const GrStyle&); - - /** - * Initialize a GL path range from an existing range of pre-initialized GPU - * path objects. This class assumes ownership of the GPU path objects and - * will delete them when done. - */ - GrGLPathRange(GrGLGpu*, - GrGLuint basePathID, - int numPaths, - size_t gpuMemorySize, - const GrStyle&); - - GrGLuint basePathID() const { return fBasePathID; } - - bool shouldStroke() const { return fShouldStroke; } - bool shouldFill() const { return fShouldFill; } - -protected: - void onInitPath(int index, const SkPath&) const override; - - void onRelease() override; - void onAbandon() override; - -private: - void init(); - size_t onGpuMemorySize() const override { return fGpuMemorySize; } - - const GrStyle fStyle; - GrGLuint fBasePathID; - mutable size_t fGpuMemorySize; - bool fShouldStroke; - bool fShouldFill; - - typedef GrPathRange INHERITED; -}; - -#endif |