gfx/skia/trunk/src/pathops/SkPathOpsCommon.h

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 /*
     2  * Copyright 2012 Google Inc.
     3  *
     4  * Use of this source code is governed by a BSD-style license that can be
     5  * found in the LICENSE file.
     6  */
     7 #ifndef SkPathOpsCommon_DEFINED
     8 #define SkPathOpsCommon_DEFINED
    10 #include "SkOpAngle.h"
    11 #include "SkOpContour.h"
    12 #include "SkTDArray.h"
    14 class SkPathWriter;
    16 void Assemble(const SkPathWriter& path, SkPathWriter* simple);
    17 // FIXME: find chase uses insert, so it can't be converted to SkTArray yet
    18 SkOpSegment* FindChase(SkTDArray<SkOpSpan*>& chase, int& tIndex, int& endIndex);
    19 SkOpSegment* FindSortableTop(const SkTArray<SkOpContour*, true>& , SkOpAngle::IncludeType ,
    20                              bool* firstContour, int* index, int* endIndex, SkPoint* topLeft,
    21                              bool* unsortable, bool* done);
    22 SkOpSegment* FindUndone(SkTArray<SkOpContour*, true>& contourList, int* start, int* end);
    23 void MakeContourList(SkTArray<SkOpContour>& contours, SkTArray<SkOpContour*, true>& list,
    24                      bool evenOdd, bool oppEvenOdd);
    25 void HandleCoincidence(SkTArray<SkOpContour*, true>* , int );
    27 #if DEBUG_ACTIVE_SPANS || DEBUG_ACTIVE_SPANS_FIRST_ONLY
    28 void DebugShowActiveSpans(SkTArray<SkOpContour*, true>& contourList);
    29 #endif
    31 #endif

mercurial