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

Side by Side Diff: pdf/BUILD.gn

Issue 2349753003: Improve linearized pdf load/show time. (Closed)
Patch Set: Fix review issues. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pdf/DEPS » ('j') | pdf/chunk_stream.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//third_party/pdfium/pdfium.gni") 6 import("//third_party/pdfium/pdfium.gni")
7 import("//testing/test.gni")
Lei Zhang 2016/10/21 09:33:08 nit: alphabetical order
snake 2016/10/21 15:13:14 Done.
7 8
8 assert(enable_pdf) 9 assert(enable_pdf)
9 10
10 pdf_engine = 0 # 0 PDFium 11 pdf_engine = 0 # 0 PDFium
11 12
12 static_library("pdf") { 13 static_library("pdf") {
13 deps = [ 14 deps = [
14 "//base", 15 "//base",
15 "//gin", 16 "//gin",
16 "//net", 17 "//net",
17 "//ppapi/cpp:objects", 18 "//ppapi/cpp:objects",
18 "//ppapi/cpp/private:internal_module", 19 "//ppapi/cpp/private:internal_module",
19 "//ui/base", 20 "//ui/base",
21 "//ui/gfx/range",
20 ] 22 ]
21 23
22 sources = [ 24 sources = [
23 "chunk_stream.cc",
24 "chunk_stream.h", 25 "chunk_stream.h",
25 "document_loader.cc", 26 "document_loader.cc",
26 "document_loader.h", 27 "document_loader.h",
27 "draw_utils.cc", 28 "draw_utils.cc",
28 "draw_utils.h", 29 "draw_utils.h",
29 "out_of_process_instance.cc", 30 "out_of_process_instance.cc",
30 "out_of_process_instance.h", 31 "out_of_process_instance.h",
31 "paint_aggregator.cc", 32 "paint_aggregator.cc",
32 "paint_aggregator.h", 33 "paint_aggregator.h",
33 "paint_manager.cc", 34 "paint_manager.cc",
34 "paint_manager.h", 35 "paint_manager.h",
35 "pdf.cc", 36 "pdf.cc",
36 "pdf.h", 37 "pdf.h",
37 "pdf_engine.h", 38 "pdf_engine.h",
38 "preview_mode_client.cc", 39 "preview_mode_client.cc",
39 "preview_mode_client.h", 40 "preview_mode_client.h",
41 "range_set.cc",
42 "range_set.h",
43 "timer.cc",
44 "timer.h",
45 "url_loader_wrapper.h",
46 "url_loader_wrapper_impl.cc",
47 "url_loader_wrapper_impl.h",
40 ] 48 ]
41 49
42 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 50 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
43 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 51 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
44 52
45 if (pdf_engine == 0) { 53 if (pdf_engine == 0) {
46 deps += [ 54 deps += [
47 "//pdf/pdfium/fuzzers", 55 "//pdf/pdfium/fuzzers",
48 "//third_party/pdfium", 56 "//third_party/pdfium",
49 ] 57 ]
(...skipping 13 matching lines...) Expand all
63 "pdfium/pdfium_range.cc", 71 "pdfium/pdfium_range.cc",
64 "pdfium/pdfium_range.h", 72 "pdfium/pdfium_range.h",
65 ] 73 ]
66 } 74 }
67 75
68 defines = [ "PDFIUM_PRINT_TEXT_WITH_GDI" ] 76 defines = [ "PDFIUM_PRINT_TEXT_WITH_GDI" ]
69 if (pdf_enable_xfa) { 77 if (pdf_enable_xfa) {
70 defines += [ "PDF_ENABLE_XFA" ] 78 defines += [ "PDF_ENABLE_XFA" ]
71 } 79 }
72 } 80 }
81
82 test("pdf_unittests") {
83 sources = [
84 "chunk_stream_unittest.cc",
85 "document_loader_unittest.cc",
86 "range_set_unittest.cc",
87 "run_all_unittests.cc",
88 ]
89
90 deps = [
91 ":pdf",
92 "//base",
93 "//base/test:test_support",
94 "//net",
95 "//ppapi/c",
96 "//ppapi/cpp",
97 "//printing",
98 "//testing/gmock",
99 "//testing/gtest",
100 "//third_party/pdfium",
101 "//ui/gfx",
Lei Zhang 2016/10/21 09:33:08 only "//ui/gfx/range" is needed?
snake 2016/10/21 15:13:14 Done.
102 "//ui/gfx/geometry",
103 ]
104 }
OLDNEW
« no previous file with comments | « no previous file | pdf/DEPS » ('j') | pdf/chunk_stream.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698