Bug 74753

Summary: Add a pretty dumb tile cache to WebTileCacheLayer
Product: WebKit Reporter: Anders Carlsson <andersca>
Component: New BugsAssignee: Anders Carlsson <andersca>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch simon.fraser: review+

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+
Anders Carlsson
Comment 1 2011-12-16 14:51:47 PST
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
Note You need to log in before you can comment on or make changes to this bug.