aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-08 03:05:29 +0000
committerGravatar skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-08 03:05:29 +0000
commitb2c82c99f891e4e846e4959c811661bf68fa43d6 (patch)
tree4e4cdcb9964507484480a9600041352317b0a738 /src/core
parent6d85e3e1824b6a98cc6c18b36891c1bfdbee0ece (diff)
Sanitizing source files in Housekeeper-Nightly
git-svn-id: http://skia.googlecode.com/svn/trunk@14636 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core')
-rw-r--r--src/core/SkLocalMatrixShader.cpp31
-rw-r--r--src/core/SkPicturePlayback.cpp14
-rw-r--r--src/core/SkPicturePlayback.h2
-rw-r--r--src/core/SkPictureStateTree.cpp2
-rw-r--r--src/core/SkPictureStateTree.h8
5 files changed, 28 insertions, 29 deletions
diff --git a/src/core/SkLocalMatrixShader.cpp b/src/core/SkLocalMatrixShader.cpp
index 63a1cedad0..802e72ef3f 100644
--- a/src/core/SkLocalMatrixShader.cpp
+++ b/src/core/SkLocalMatrixShader.cpp
@@ -15,44 +15,44 @@ public:
: fProxyShader(SkRef(proxy))
, fProxyLocalMatrix(localMatrix)
{}
-
+
virtual size_t contextSize() const SK_OVERRIDE {
return fProxyShader->contextSize();
}
-
+
virtual BitmapType asABitmap(SkBitmap* bitmap, SkMatrix* matrix,
TileMode* mode) const SK_OVERRIDE {
return fProxyShader->asABitmap(bitmap, matrix, mode);
}
-
+
virtual GradientType asAGradient(GradientInfo* info) const SK_OVERRIDE {
return fProxyShader->asAGradient(info);
}
-
+
// TODO: need to augment this API to pass in a localmatrix (which we can augment)
virtual GrEffectRef* asNewEffect(GrContext* ctx, const SkPaint& paint) const SK_OVERRIDE {
return fProxyShader->asNewEffect(ctx, paint);
}
-
+
virtual SkShader* refAsALocalMatrixShader(SkMatrix* localMatrix) const SK_OVERRIDE {
if (localMatrix) {
*localMatrix = fProxyLocalMatrix;
}
return SkRef(fProxyShader.get());
}
-
+
SK_TO_STRING_OVERRIDE()
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkLocalMatrixShader)
-
+
protected:
SkLocalMatrixShader(SkReadBuffer&);
virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
virtual Context* onCreateContext(const ContextRec&, void*) const SK_OVERRIDE;
-
+
private:
SkAutoTUnref<SkShader> fProxyShader;
SkMatrix fProxyLocalMatrix;
-
+
typedef SkShader INHERITED;
};
@@ -86,11 +86,11 @@ SkShader::Context* SkLocalMatrixShader::onCreateContext(const ContextRec& rec,
#ifndef SK_IGNORE_TO_STRING
void SkLocalMatrixShader::toString(SkString* str) const {
str->append("SkLocalMatrixShader: (");
-
+
fProxyShader->toString(str);
-
+
this->INHERITED::toString(str);
-
+
str->append(")");
}
#endif
@@ -99,9 +99,9 @@ SkShader* SkShader::CreateLocalMatrixShader(SkShader* proxy, const SkMatrix& loc
if (localMatrix.isIdentity()) {
return SkRef(proxy);
}
-
+
const SkMatrix* lm = &localMatrix;
-
+
SkMatrix otherLocalMatrix;
SkAutoTUnref<SkShader> otherProxy(proxy->refAsALocalMatrixShader(&otherLocalMatrix));
if (otherProxy.get()) {
@@ -109,7 +109,6 @@ SkShader* SkShader::CreateLocalMatrixShader(SkShader* proxy, const SkMatrix& loc
lm = &otherLocalMatrix;
proxy = otherProxy.get();
}
-
+
return SkNEW_ARGS(SkLocalMatrixShader, (proxy, *lm));
}
-
diff --git a/src/core/SkPicturePlayback.cpp b/src/core/SkPicturePlayback.cpp
index 94fe421633..28ca689d01 100644
--- a/src/core/SkPicturePlayback.cpp
+++ b/src/core/SkPicturePlayback.cpp
@@ -23,10 +23,10 @@ template <typename T> int SafeCount(const T* obj) {
*/
#define SPEW_CLIP_SKIPPINGx
-SkPicturePlayback::PlaybackReplacements::ReplacementInfo*
-SkPicturePlayback::PlaybackReplacements::push() {
+SkPicturePlayback::PlaybackReplacements::ReplacementInfo*
+SkPicturePlayback::PlaybackReplacements::push() {
SkDEBUGCODE(this->validate());
- return fReplacements.push();
+ return fReplacements.push();
}
void SkPicturePlayback::PlaybackReplacements::freeAll() {
@@ -776,7 +776,7 @@ private:
};
// TODO: Replace with hash or pass in "lastLookedUp" hint
-SkPicturePlayback::PlaybackReplacements::ReplacementInfo*
+SkPicturePlayback::PlaybackReplacements::ReplacementInfo*
SkPicturePlayback::PlaybackReplacements::lookupByStart(size_t start) {
SkDEBUGCODE(this->validate());
for (int i = 0; i < fReplacements.count(); ++i) {
@@ -891,7 +891,7 @@ void SkPicturePlayback::draw(SkCanvas& canvas, SkDrawPictureCallback* callback)
if (NULL != fReplacements) {
// Potentially replace a block of operations with a single drawBitmap call
- SkPicturePlayback::PlaybackReplacements::ReplacementInfo* temp =
+ SkPicturePlayback::PlaybackReplacements::ReplacementInfo* temp =
fReplacements->lookupByStart(reader.offset());
if (NULL != temp) {
SkASSERT(NULL != temp->fBM);
@@ -903,14 +903,14 @@ void SkPicturePlayback::draw(SkCanvas& canvas, SkDrawPictureCallback* callback)
// a restore to balanced the saveLayer we're skipping
canvas.save();
// Note: This skipping only works if the client only issues
- // well behaved saveLayer calls (i.e., doesn't use
+ // well behaved saveLayer calls (i.e., doesn't use
// kMatrix_SaveFlag or kClip_SaveFlag in isolation)
// At this point we know that the PictureStateTree was aiming
// for some draw op within temp's saveLayer (although potentially
// in a separate saveLayer nested inside it).
// We need to skip all the operations inside temp's range
- // along with all the associated state changes but update
+ // along with all the associated state changes but update
// the state tree to the first operation outside temp's range.
SkASSERT(it.peekDraw() >= temp->fStart && it.peekDraw() <= temp->fStop);
diff --git a/src/core/SkPicturePlayback.h b/src/core/SkPicturePlayback.h
index 7ac8dd8d61..37caa8a43d 100644
--- a/src/core/SkPicturePlayback.h
+++ b/src/core/SkPicturePlayback.h
@@ -280,7 +280,7 @@ private:
~PlaybackReplacements() { this->freeAll(); }
- // Add a new replacement range. The replacement ranges should be
+ // Add a new replacement range. The replacement ranges should be
// sorted in increasing order and non-overlapping (esp. no nested
// saveLayers).
ReplacementInfo* push();
diff --git a/src/core/SkPictureStateTree.cpp b/src/core/SkPictureStateTree.cpp
index 39a1a47e14..8b5bc0aa2f 100644
--- a/src/core/SkPictureStateTree.cpp
+++ b/src/core/SkPictureStateTree.cpp
@@ -121,7 +121,7 @@ uint32_t SkPictureStateTree::Iterator::peekDraw() {
}
Draw* draw = static_cast<Draw*>((*fDraws)[fPlaybackIndex]);
- return draw->fOffset;
+ return draw->fOffset;
}
uint32_t SkPictureStateTree::Iterator::skipDraw() {
diff --git a/src/core/SkPictureStateTree.h b/src/core/SkPictureStateTree.h
index a77e09448c..f9e187a0cb 100644
--- a/src/core/SkPictureStateTree.h
+++ b/src/core/SkPictureStateTree.h
@@ -75,21 +75,21 @@ public:
class Iterator {
public:
/** Returns the next op offset needed to create the drawing state
- required by the queued up draw operation or the offset of the queued
+ required by the queued up draw operation or the offset of the queued
up draw operation itself. In the latter case, the next draw operation
will move into the queued up slot.
- It retuns kDrawComplete when done.
+ It retuns kDrawComplete when done.
TODO: this might be better named nextOp
*/
uint32_t nextDraw();
/** Peek at the currently queued up draw op's offset. Note that this can
be different then what 'nextDraw' would return b.c. it is
the offset of the next _draw_ op while 'nextDraw' can return
- the offsets to saveLayer and clip ops while it is creating the proper
+ the offsets to saveLayer and clip ops while it is creating the proper
drawing context for the queued up draw op.
*/
uint32_t peekDraw();
- /** Stop trying to create the drawing context for the currently queued
+ /** Stop trying to create the drawing context for the currently queued
up _draw_ operation and queue up the next one. This call returns
the offset of the skipped _draw_ operation. Obviously (since the
correct drawing context has not been established), the skipped