gfx/skia/trunk/src/pathops/SkReduceOrder.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 SkReduceOrder_DEFINED
     8 #define SkReduceOrder_DEFINED
    10 #include "SkPath.h"
    11 #include "SkPathOpsCubic.h"
    12 #include "SkPathOpsLine.h"
    13 #include "SkPathOpsQuad.h"
    14 #include "SkTArray.h"
    16 union SkReduceOrder {
    17     enum Quadratics {
    18         kNo_Quadratics,
    19         kAllow_Quadratics
    20     };
    22     int reduce(const SkDCubic& cubic, Quadratics);
    23     int reduce(const SkDLine& line);
    24     int reduce(const SkDQuad& quad);
    26     static SkPath::Verb Cubic(const SkPoint pts[4], SkPoint* reducePts);
    27     static SkPath::Verb Quad(const SkPoint pts[3], SkPoint* reducePts);
    29     SkDLine fLine;
    30     SkDQuad fQuad;
    31     SkDCubic fCubic;
    32 };
    34 #endif

mercurial