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
132417
[iOS WebKit2] Swipe snapshots should be taken asynchronously
https://bugs.webkit.org/show_bug.cgi?id=132417
Summary
[iOS WebKit2] Swipe snapshots should be taken asynchronously
Tim Horton
Reported
2014-04-30 17:57:57 PDT
<
rdar://problem/16535921
>
Attachments
patch
(37.68 KB, patch)
2014-04-30 18:31 PDT
,
Tim Horton
andersca
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Tim Horton
Comment 1
2014-04-30 18:31:23 PDT
Created
attachment 230552
[details]
patch
WebKit Commit Bot
Comment 2
2014-04-30 18:32:58 PDT
Attachment 230552
[details]
did not pass style-queue: ERROR: Source/WebKit2/UIProcess/mac/ViewSnapshotStore.mm:73: Missing space before { [whitespace/braces] [5] Total errors found: 1 in 20 files If any of these errors are false positives, please file a bug against check-webkit-style.
Anders Carlsson
Comment 3
2014-05-02 12:16:45 PDT
Comment on
attachment 230552
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=230552&action=review
> Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:495 > +- (void)_takeViewSnapshot:(WebKit::ViewSnapshot&)snapshot
I think this should return a ViewSnapshot instead.
> Source/WebKit2/UIProcess/API/mac/WKView.mm:3040 > +- (void)_takeViewSnapshot:(ViewSnapshot&)snapshot
I think this should return a ViewSnapshot.
> Source/WebKit2/UIProcess/API/mac/WKView.mm:3074 > + RetainPtr<CGImageRef> croppedSnapshotImage = adoptCF(CGImageCreateWithImageInRect(windowSnapshotImage.get(), NSRectToCGRect([window convertRectToBacking:croppedImageRect])));
auto?
> Source/WebKit2/UIProcess/API/mac/WKViewInternal.h:41 > +struct KeypressCommand;
I think structs should come after the classes.
> Source/WebKit2/UIProcess/WebMemoryPressureHandler.cpp:40 > + NeverDestroyed<WebMemoryPressureHandler> memoryPressureHandler;
This should be static.
> Source/WebKit2/UIProcess/WebMemoryPressureHandler.cpp:48 > +WebMemoryPressureHandler::WebMemoryPressureHandler() > +{ > + memoryPressureHandler().setLowMemoryHandler(handleLowMemory); > + memoryPressureHandler().install(); > +}
How does this interact with WebKit1 and coexistence on iOS?
> Source/WebKit2/UIProcess/WebMemoryPressureHandler.h:33 > + static WebMemoryPressureHandler& ensureSharedHandler();
I think this should just be called shared().
> Source/WebKit2/UIProcess/WebMemoryPressureHandler.h:37 > + static void handleLowMemory(bool);
This can probably be a lambda.
> Source/WebKit2/UIProcess/mac/ViewSnapshotStore.h:48 > + uint32_t slot;
I think this should be called slotID. If you want you can just assign = 0 here and not bother with the constructor.
Tim Horton
Comment 4
2014-05-05 00:38:43 PDT
http://trac.webkit.org/changeset/168260
Andy Estes
Comment 5
2014-05-05 09:31:36 PDT
Build fixes landed in
r168276
and
r168289
.
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