Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1365)

Issue 2812263002: clean up printing::Image and printing::Metafile (Closed)

Created:
3 years, 8 months ago by hal.canary
Modified:
3 years, 8 months ago
Reviewers:
Lei Zhang
CC:
chromium-reviews, mac-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

clean up printing::Image and printing::Metafile printing::Image now takes raw data, rather than a metafile. this removes the need for a virtual on printing::Metafile, Playback(). printing::Image gets move constructor printing::Image loses dead code. delete dead code: chrome/browser/printing/printing_layout_browsertest.cc ServiceUtilityProcessHost takes metafile data, not a MetafilePlayer. This will help remove printing::Metafile::SafePlayback(). printing::PdfMetafileCg::OnRenderPage is added to copy data fewer times. Review-Url: https://codereview.chromium.org/2812263002 Cr-Commit-Position: refs/heads/master@{#464714} Committed: https://chromium.googlesource.com/chromium/src/+/574b10750dfea3d1103946615a1c8a4a9bff3b5c

Patch Set 1 #

Patch Set 2 : ServiceUtilityProcessHost does not handle metafile #

Patch Set 3 : return #

Total comments: 11

Patch Set 4 : const and impl in cc #

Total comments: 1

Patch Set 5 : mac effienciecies #

Total comments: 5

Patch Set 6 : move needs rvalue #

Total comments: 1

Patch Set 7 : definition matches declaration #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -647 lines) Patch
D chrome/browser/printing/printing_layout_browsertest.cc View 1 chunk +0 lines, -475 lines 0 comments Download
M chrome/service/cloud_print/print_system_win.cc View 1 2 3 1 chunk +7 lines, -3 lines 0 comments Download
M chrome/service/service_utility_process_host.h View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/service/service_utility_process_host.cc View 1 2 3 4 3 chunks +7 lines, -4 lines 0 comments Download
M components/printing/test/mock_printer.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M components/printing/test/mock_printer.cc View 1 2 3 4 5 2 chunks +5 lines, -12 lines 0 comments Download
M printing/emf_win.h View 1 2 3 4 1 chunk +11 lines, -1 line 0 comments Download
M printing/image.h View 1 2 3 4 2 chunks +5 lines, -31 lines 0 comments Download
M printing/image.cc View 1 2 3 4 2 chunks +5 lines, -79 lines 0 comments Download
M printing/image_android.cc View 1 chunk +1 line, -1 line 0 comments Download
M printing/image_linux.cc View 1 chunk +1 line, -1 line 0 comments Download
M printing/image_mac.cc View 1 2 3 4 2 chunks +7 lines, -6 lines 0 comments Download
M printing/image_win.cc View 2 chunks +8 lines, -3 lines 0 comments Download
M printing/metafile.h View 2 chunks +0 lines, -17 lines 0 comments Download
M printing/pdf_metafile_cg_mac.h View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M printing/pdf_metafile_cg_mac.cc View 1 2 3 4 1 chunk +9 lines, -1 line 0 comments Download
M printing/pdf_metafile_skia.h View 1 chunk +0 lines, -2 lines 0 comments Download
M printing/pdf_metafile_skia.cc View 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 43 (34 generated)
hal.canary
PTAL
3 years, 8 months ago (2017-04-12 13:59:55 UTC) #4
Lei Zhang
https://codereview.chromium.org/2812263002/diff/60001/chrome/browser/printing/printing_layout_browsertest.cc File chrome/browser/printing/printing_layout_browsertest.cc (left): https://codereview.chromium.org/2812263002/diff/60001/chrome/browser/printing/printing_layout_browsertest.cc#oldcode430 chrome/browser/printing/printing_layout_browsertest.cc:430: embedded_test_server()->GetURL("/printing/popup_delayed_print.htm"); Can you file a bug to re-implement these ...
3 years, 8 months ago (2017-04-12 19:33:33 UTC) #18
hal.canary
https://codereview.chromium.org/2812263002/diff/60001/chrome/browser/printing/printing_layout_browsertest.cc File chrome/browser/printing/printing_layout_browsertest.cc (left): https://codereview.chromium.org/2812263002/diff/60001/chrome/browser/printing/printing_layout_browsertest.cc#oldcode430 chrome/browser/printing/printing_layout_browsertest.cc:430: embedded_test_server()->GetURL("/printing/popup_delayed_print.htm"); On 2017/04/12 19:33:33, Lei Zhang wrote: > Can ...
3 years, 8 months ago (2017-04-13 20:55:38 UTC) #21
Lei Zhang
https://codereview.chromium.org/2812263002/diff/60001/printing/image.h File printing/image.h (right): https://codereview.chromium.org/2812263002/diff/60001/printing/image.h#newcode67 printing/image.h:67: bool LoadPng(const std::string& compressed); On 2017/04/13 20:55:38, hal.canary wrote: ...
3 years, 8 months ago (2017-04-13 21:21:20 UTC) #23
hal.canary
https://codereview.chromium.org/2812263002/diff/100001/components/printing/test/mock_printer.cc File components/printing/test/mock_printer.cc (right): https://codereview.chromium.org/2812263002/diff/100001/components/printing/test/mock_printer.cc#newcode55 components/printing/test/mock_printer.cc:55: : source_size_(source_size), image_(std::move(image)) { On 2017/04/13 21:21:20, Lei Zhang ...
3 years, 8 months ago (2017-04-13 23:57:26 UTC) #26
Lei Zhang
lgtm with green bots. https://codereview.chromium.org/2812263002/diff/100001/components/printing/test/mock_printer.cc File components/printing/test/mock_printer.cc (right): https://codereview.chromium.org/2812263002/diff/100001/components/printing/test/mock_printer.cc#newcode55 components/printing/test/mock_printer.cc:55: : source_size_(source_size), image_(std::move(image)) { On ...
3 years, 8 months ago (2017-04-14 00:04:34 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2812263002/140001
3 years, 8 months ago (2017-04-14 11:40:51 UTC) #39
commit-bot: I haz the power
Committed patchset #7 (id:140001) as https://chromium.googlesource.com/chromium/src/+/574b10750dfea3d1103946615a1c8a4a9bff3b5c
3 years, 8 months ago (2017-04-14 11:45:36 UTC) #42
Lei Zhang
3 years, 8 months ago (2017-04-26 20:36:18 UTC) #43
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:140001) has been created in
https://codereview.chromium.org/2835193007/ by thestig@chromium.org.

The reason for reverting is: Reverting so https://crrev.com/463828 can be
cleanly reverted.

r463828 is likely causing https://crbug.com/712309

.

Powered by Google App Engine
This is Rietveld 408576698