From 18ea65a3472ee59c56048a926838e8db21208221 Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Mon, 20 Mar 2017 20:53:02 +0000 Subject: Revert "Revert "remove unused SkMeshUtils and SkBoundaryPatch"" This reverts commit 006c8da9c65e234f102f671e5abd41f697864c89. Reason for revert: PDFium references have been removed Original change's description: > Revert "remove unused SkMeshUtils and SkBoundaryPatch" > > This reverts commit 5e21e0991968271ee37f446de7e08620ad1b50bb. > > Reason for revert: Breaks Pdfium build see: > https://chromium-swarm.appspot.com/task?id=3504e60d4bc10810&refresh=10 > > Original change's description: > > remove unused SkMeshUtils and SkBoundaryPatch > > > > BUG=skia:6366 > > > > Change-Id: Ibacd397e0a246dbeefde074c98712ada3848a7b6 > > Reviewed-on: https://skia-review.googlesource.com/9852 > > Reviewed-by: Mike Reed > > Commit-Queue: Mike Reed > > > > TBR=djsollen@google.com,reed@google.com,reviews@skia.org > NOPRESUBMIT=true > NOTREECHECKS=true > NOTRY=true > BUG=skia:6366 > > Change-Id: I2403bae0a17bce8eeec743c6f433bb51b214e669 > Reviewed-on: https://skia-review.googlesource.com/9891 > Reviewed-by: Stephan Altmueller > Commit-Queue: Stephan Altmueller > TBR=djsollen@google.com,reviews@skia.org,stephana@google.com,reed@google.com NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=skia:6366 Change-Id: Iefe14394a09c16bd0ad00807dbda947311f926e8 Reviewed-on: https://skia-review.googlesource.com/9910 Reviewed-by: Mike Reed Commit-Queue: Mike Reed --- include/utils/SkBoundaryPatch.h | 66 ----------------------------------------- 1 file changed, 66 deletions(-) delete mode 100644 include/utils/SkBoundaryPatch.h (limited to 'include/utils/SkBoundaryPatch.h') diff --git a/include/utils/SkBoundaryPatch.h b/include/utils/SkBoundaryPatch.h deleted file mode 100644 index f8edd594b9..0000000000 --- a/include/utils/SkBoundaryPatch.h +++ /dev/null @@ -1,66 +0,0 @@ - -/* - * Copyright 2011 Google Inc. - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ -#ifndef SkBoundaryPatch_DEFINED -#define SkBoundaryPatch_DEFINED - -#include "SkPoint.h" -#include "SkRefCnt.h" - -class SkBoundary : public SkRefCnt { -public: - - - // These must be 0, 1, 2, 3 for efficiency in the subclass implementations - enum Edge { - kTop = 0, - kRight = 1, - kBottom = 2, - kLeft = 3 - }; - // Edge index goes clockwise around the boundary, beginning at the "top" - virtual SkPoint eval(Edge, SkScalar unitInterval) = 0; - -private: - typedef SkRefCnt INHERITED; -}; - -class SkBoundaryPatch { -public: - SkBoundaryPatch(); - ~SkBoundaryPatch(); - - SkBoundary* getBoundary() const { return fBoundary; } - SkBoundary* setBoundary(SkBoundary*); - - SkPoint eval(SkScalar unitU, SkScalar unitV); - bool evalPatch(SkPoint verts[], int rows, int cols); - -private: - SkBoundary* fBoundary; -}; - -//////////////////////////////////////////////////////////////////////// - -class SkLineBoundary : public SkBoundary { -public: - SkPoint fPts[4]; - - // override - virtual SkPoint eval(Edge, SkScalar); -}; - -class SkCubicBoundary : public SkBoundary { -public: - // the caller sets the first 12 entries. The 13th is used by the impl. - SkPoint fPts[13]; - - // override - virtual SkPoint eval(Edge, SkScalar); -}; - -#endif -- cgit v1.2.3