aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkTileGrid.h
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@google.com>2014-10-20 10:43:55 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-20 10:43:55 -0700
commitdba3e64ab9bbeac5a8b4fed6d03665cc7a5cf514 (patch)
tree22532d2a003b20f7cc303c0c79aed41608452cf3 /src/core/SkTileGrid.h
parent84c14ee1073461f3a53e86bea143717310e8f4a7 (diff)
Revert of Start to vectorize SkTileGrid. (patchset #48 id:1670001 of https://codereview.chromium.org/634543004/)
Reason for revert: breaks chrome GPU debug bots Original issue's description: > Start to vectorize SkTileGrid. > > This adds Sk4x.h to help. > > BUG=skia:3041 > > Committed: https://skia.googlesource.com/skia/+/90c7992bfc6330f070f7704d63372a0ec8410170 > > CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu12-ShuttleA-GTX660-x86-Debug-Trybot > > Committed: https://skia.googlesource.com/skia/+/958e9628d5f9a81aeafa78572cb4afc4b19a455a TBR=reed@google.com,mtklein@chromium.org NOTREECHECKS=true NOTRY=true BUG=skia:3041 Review URL: https://codereview.chromium.org/637863005
Diffstat (limited to 'src/core/SkTileGrid.h')
-rw-r--r--src/core/SkTileGrid.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/core/SkTileGrid.h b/src/core/SkTileGrid.h
index d556f8074b..fd7584fd9c 100644
--- a/src/core/SkTileGrid.h
+++ b/src/core/SkTileGrid.h
@@ -8,7 +8,6 @@
#ifndef SkTileGrid_DEFINED
#define SkTileGrid_DEFINED
-#include "Sk4x.h"
#include "SkBBHFactory.h"
#include "SkBBoxHierarchy.h"
@@ -44,16 +43,16 @@ public:
virtual void flushDeferredInserts() SK_OVERRIDE;
private:
- void userToGrid(const Sk4f&, SkIRect*) const;
- bool intersectsGrid(const Sk4f&) const;
+ void commonAdjust(SkRect*) const;
+ void userToGrid(const SkRect&, SkIRect* grid) const;
- const int fXTiles, // Number of tiles in a single row.
- fNumTiles; // Total number of tiles.
+ const int fXTiles, fYTiles;
+ const SkScalar fInvWidth, fInvHeight;
+ const SkScalar fMarginWidth, fMarginHeight;
+ const SkPoint fOffset;
+ const SkRect fGridBounds;
- const SkRect fGridBounds; // Only used for intersectsGrid(). Remove if that's removed.
- const Sk4f fMargin, fOffset, fUserToGrid, fGridHigh;
-
- // fNumTiles SkTDArrays, each listing ops overlapping that tile in order.
+ // (fXTiles * fYTiles) SkTDArrays, each listing ops overlapping that tile in order.
SkTDArray<unsigned>* fTiles;
typedef SkBBoxHierarchy INHERITED;