-\r
-/*\r
- * Copyright 2012 Google Inc.\r
- *\r
- * Use of this source code is governed by a BSD-style license that can be\r
- * found in the LICENSE file.\r
- */\r
-\r
-#include "SkBBoxHierarchy.h"\r
-\r
-SK_DEFINE_INST_COUNT(SkBBoxHierarchy)\r
-\r
+
+/*
+ * Copyright 2012 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#include "SkBBoxHierarchy.h"
+
+SK_DEFINE_INST_COUNT(SkBBoxHierarchy)
+
virtual void handleBBox(const SkRect& bounds) SK_OVERRIDE;
- virtual int save(SaveFlags flags = kMatrixClip_SaveFlag) SK_OVERRIDE;
+ virtual int save(SaveFlags flags = kMatrixClip_SaveFlag) SK_OVERRIDE;
virtual int saveLayer(const SkRect* bounds, const SkPaint* paint,
- SaveFlags flags = kARGB_ClipLayer_SaveFlag) SK_OVERRIDE;
- virtual void restore() SK_OVERRIDE;
+ SaveFlags flags = kARGB_ClipLayer_SaveFlag) SK_OVERRIDE;
+ virtual void restore() SK_OVERRIDE;
- virtual bool translate(SkScalar dx, SkScalar dy) SK_OVERRIDE;
- virtual bool scale(SkScalar sx, SkScalar sy) SK_OVERRIDE;
+ virtual bool translate(SkScalar dx, SkScalar dy) SK_OVERRIDE;
+ virtual bool scale(SkScalar sx, SkScalar sy) SK_OVERRIDE;
virtual bool rotate(SkScalar degrees) SK_OVERRIDE;
virtual bool skew(SkScalar sx, SkScalar sy) SK_OVERRIDE;
virtual bool concat(const SkMatrix& matrix) SK_OVERRIDE;
virtual bool clipRect(const SkRect& rect,
SkRegion::Op op = SkRegion::kIntersect_Op,
- bool doAntiAlias = false) SK_OVERRIDE;
+ bool doAntiAlias = false) SK_OVERRIDE;
virtual bool clipRegion(const SkRegion& region,
- SkRegion::Op op = SkRegion::kIntersect_Op) SK_OVERRIDE;
+ SkRegion::Op op = SkRegion::kIntersect_Op) SK_OVERRIDE;
virtual bool clipPath(const SkPath& path,
SkRegion::Op op = SkRegion::kIntersect_Op,
- bool doAntiAlias = false) SK_OVERRIDE;
+ bool doAntiAlias = false) SK_OVERRIDE;
private:
typedef SkBBoxRecord INHERITED;
* SkTMaskPreBlend is a tear-off of SkTMaskGamma. It provides the tables to
* convert a linear alpha value for a given channel to a gamma correcting alpha
* value for that channel. This class is immutable.
- *
+ *
* If fR, fG, or fB is NULL, all of them will be. This indicates that no mask
* pre blend should be applied.
*/
SkPictureStateTree();
~SkPictureStateTree();
- /**
+ /**
* Creates and returns a struct representing a draw at the given offset.
*/
Draw* appendDraw(uint32_t offset);
// A stack of states for tracking save/restores
SkDeque fStateStack;
- // Represents a notable piece of state that requires an offset into the command buffer,
+ // Represents a notable piece of state that requires an offset into the command buffer,
// corresponding to a clip/saveLayer/etc call, to apply.
struct Node {
Node* fParent;