WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
74753
Add a pretty dumb tile cache to WebTileCacheLayer
https://bugs.webkit.org/show_bug.cgi?id=74753
Summary
Add a pretty dumb tile cache to WebTileCacheLayer
Anders Carlsson
Reported
2011-12-16 14:39:18 PST
Add a pretty dumb tile cache to WebTileCacheLayer
Attachments
Patch
(27.12 KB, patch)
2011-12-16 14:51 PST
,
Anders Carlsson
simon.fraser
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Anders Carlsson
Comment 1
2011-12-16 14:51:47 PST
Created
attachment 119677
[details]
Patch
WebKit Review Bot
Comment 2
2011-12-16 14:56:10 PST
Attachment 119677
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/platform/graphics/ca/mac/WebTileCacheLayer.h:30: Code inside a namespace should not be indented. [whitespace/indent] [4] Source/WebCore/platform/graphics/ca/mac/WebTileLayer.h:30: Code inside a namespace should not be indented. [whitespace/indent] [4] Total errors found: 2 in 12 files If any of these errors are false positives, please file a bug against check-webkit-style.
Simon Fraser (smfr)
Comment 3
2011-12-16 14:57:07 PST
Comment on
attachment 119677
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=119677&action=review
> Source/WebCore/platform/graphics/ca/mac/TileCache.h:67 > + void getTileRangeForRect(const IntRect&, IntPoint& topLeft, IntPoint& bottomRight); > + > + IntSize numTilesForGridSize(const IntSize&);
Can these be const?
> Source/WebCore/platform/graphics/ca/mac/TileCache.h:70 > + WebTileLayer* tileLayerAtPosition(const IntPoint&);
Make const?
> Source/WebCore/platform/graphics/ca/mac/TileCache.mm:99 > + CGContextRestoreGState(context);
Tab here?
> Source/WebCore/platform/graphics/ca/mac/WebTileCacheLayer.h:34 > + OwnPtr<WebCore::TileCache> _tileCache;
Do we still do underscores on Obj-C member vars? Is ugly.
Anders Carlsson
Comment 4
2011-12-16 15:01:38 PST
(In reply to
comment #3
)/ca/mac/WebTileCacheLayer.h:34
> > + OwnPtr<WebCore::TileCache> _tileCache; > > Do we still do underscores on Obj-C member vars? Is ugly.
That is the Objective-C convention, ugly or not :)
Anders Carlsson
Comment 5
2011-12-16 15:05:31 PST
Committed
r103114
: <
http://trac.webkit.org/changeset/103114
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug