headers: forward declare SkDOM, and include SkClipOp

Change-Id: I38041cd2c71a89604f35832415287e2356592efd
Reviewed-on: https://skia-review.googlesource.com/8925
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
This commit is contained in:
Hal Canary 2017-02-23 13:24:49 -05:00 committed by Skia Commit-Bot
parent a109e3926e
commit 20de615e3d
6 changed files with 17 additions and 9 deletions

View File

@ -8,10 +8,12 @@
#ifndef SkEvent_DEFINED
#define SkEvent_DEFINED
#include "SkDOM.h"
#include "SkMetaData.h"
#include "SkString.h"
class SkDOM;
struct SkDOMNode;
#include "../private/SkLeanWindows.h"
/** Unique 32bit id used to identify an instance of SkEventSink. When events are
@ -180,7 +182,7 @@ public:
const SkMetaData& getMetaData() const { return fMeta; }
/** Call this to initialize the event from the specified XML node */
void inflate(const SkDOM&, const SkDOM::Node*);
void inflate(const SkDOM&, const SkDOMNode*);
SkDEBUGCODE(void dump(const char title[] = NULL);)

View File

@ -12,12 +12,13 @@
#include "SkEventSink.h"
#include "SkRect.h"
#include "SkDOM.h"
#include "SkMatrix.h"
#include "SkMetaData.h"
class SkCanvas;
class SkLayerView;
class SkDOM;
struct SkDOMNode;
/** \class SkView
@ -260,10 +261,10 @@ public:
void draw(SkView*, SkCanvas*);
void inflate(const SkDOM&, const SkDOM::Node*);
void inflate(const SkDOM&, const SkDOMNode*);
protected:
virtual void onDraw(SkView*, SkCanvas*) = 0;
virtual void onInflate(const SkDOM&, const SkDOM::Node*);
virtual void onInflate(const SkDOM&, const SkDOMNode*);
private:
typedef SkRefCnt INHERITED;
};
@ -288,10 +289,10 @@ public:
void layoutChildren(SkView* parent);
void inflate(const SkDOM&, const SkDOM::Node*);
void inflate(const SkDOM&, const SkDOMNode*);
protected:
virtual void onLayoutChildren(SkView* parent) = 0;
virtual void onInflate(const SkDOM&, const SkDOM::Node*);
virtual void onInflate(const SkDOM&, const SkDOMNode*);
private:
typedef SkRefCnt INHERITED;
};
@ -311,7 +312,7 @@ public:
/** Call this to initialize this view based on the specified XML node
*/
void inflate(const SkDOM& dom, const SkDOM::Node* node);
void inflate(const SkDOM& dom, const SkDOMNode* node);
SkDEBUGCODE(void dump(bool recurse) const;)
@ -349,7 +350,7 @@ protected:
*/
virtual bool onClick(Click*);
/** Override this to initialize your subclass from the XML node. Be sure to call the inherited version too */
virtual void onInflate(const SkDOM& dom, const SkDOM::Node* node);
virtual void onInflate(const SkDOM& dom, const SkDOMNode* node);
/** Override this if you want to perform post initialization work based on the ID dictionary built
during XML parsing. Be sure to call the inherited version too.
*/

View File

@ -8,6 +8,7 @@
#ifndef SkRasterClipStack_DEFINED
#define SkRasterClipStack_DEFINED
#include "SkClipOp.h"
#include "SkDeque.h"
#include "SkRasterClip.h"

View File

@ -6,6 +6,7 @@
*/
#include "SkDOM.h"
#include "SkEvent.h"
void SkEvent::initialize(const char* type, size_t typeLen,

View File

@ -7,6 +7,7 @@
#include "SkView.h"
#include "SkCanvas.h"
#include "SkDOM.h"
static inline uint32_t SkSetClearShift(uint32_t bits, bool cond, unsigned shift) {
SkASSERT((int)cond == 0 || (int)cond == 1);

View File

@ -4,6 +4,8 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkDOM.h"
#include "SkViewPriv.h"
//////////////////////////////////////////////////////////////////////