forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve data receiving in PrintPreviewMessageHandler.
- Add a ShouldUseCompositor() helper function. - Reduce the number of GetPrintPreviewUI() calls in the non-compositing path. - Call PrintPreviewUI::ShouldCancelRequest() before compositing, to avoid doing work if the results are not useful. - Make NotifyUIPreviewPageReady() and NotifyUIPreviewDocumentReady() check the data in a consistent manner. Change-Id: Ia357e6ab1a7bf41a849445cf113aff071cae1b1c Reviewed-on: https://chromium-review.googlesource.com/1188030 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Rebekah Potter <rbpotter@chromium.org> Cr-Commit-Position: refs/heads/master@{#588244}
- Loading branch information
Showing
2 changed files
with
35 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters