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

Side by Side Diff: core/src/fxge/skia/fx_skia_device.cpp

Issue 1427633010: Fix relative includes within core/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: IWYU Created 5 years, 1 month 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
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium 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 #include "../../../include/fxge/fx_ge.h" 5 #include "core/include/fxge/fx_ge.h"
6
6 //#define _SKIA_SUPPORT_ 7 //#define _SKIA_SUPPORT_
Tom Sepez 2015/11/09 21:46:16 nit: remove.
Lei Zhang 2015/11/10 09:27:56 Done.
7 #if defined(_SKIA_SUPPORT_) 8 #if defined(_SKIA_SUPPORT_)
8 #include "../../../include/fxcodec/fx_codec.h" 9 #include "core/include/fxcodec/fx_codec.h"
9 10
10 //#define _FOXIT_DEBUG_ 11 //#define _FOXIT_DEBUG_
Tom Sepez 2015/11/09 21:46:16 nitto.
Lei Zhang 2015/11/10 09:27:56 Done.
11 //#define _FOXIT_BENCHMARK_ 12 //#define _FOXIT_BENCHMARK_
Tom Sepez 2015/11/09 21:46:16 ditto nitto.
Lei Zhang 2015/11/10 09:27:56 Done.
12 13
13 extern "C" { 14 extern "C" {
14 extern void FX_OUTPUT_LOG_FUNC(const char*, ...); 15 extern void FX_OUTPUT_LOG_FUNC(const char*, ...);
15 extern int FX_GET_TICK_FUNC(); 16 extern int FX_GET_TICK_FUNC();
16 }; 17 };
17 18
18 #ifdef _FOXIT_DEBUG_ 19 #ifdef _FOXIT_DEBUG_
19 #define FOXIT_DEBUG1(msg) FX_OUTPUT_LOG_FUNC(msg) 20 #define FOXIT_DEBUG1(msg) FX_OUTPUT_LOG_FUNC(msg)
20 #define FOXIT_DEBUG2(msg, para) FX_OUTPUT_LOG_FUNC(msg, para) 21 #define FOXIT_DEBUG2(msg, para) FX_OUTPUT_LOG_FUNC(msg, para)
21 #define FOXIT_DEBUG3(msg, para1, para2) FX_OUTPUT_LOG_FUNC(msg, para1, para2) 22 #define FOXIT_DEBUG3(msg, para1, para2) FX_OUTPUT_LOG_FUNC(msg, para1, para2)
22 #define FOXIT_DEBUG4(msg, para1, para2, para3) \ 23 #define FOXIT_DEBUG4(msg, para1, para2, para3) \
23 FX_OUTPUT_LOG_FUNC(msg, para1, para2, para3) 24 FX_OUTPUT_LOG_FUNC(msg, para1, para2, para3)
24 #define FOXIT_DEBUG5(msg, para1, para2, para3, param4) \ 25 #define FOXIT_DEBUG5(msg, para1, para2, para3, param4) \
25 FX_OUTPUT_LOG_FUNC(msg, para1, para2, para3, param4) 26 FX_OUTPUT_LOG_FUNC(msg, para1, para2, para3, param4)
26 #else 27 #else
27 #define FOXIT_DEBUG1(msg) 28 #define FOXIT_DEBUG1(msg)
28 #define FOXIT_DEBUG2(msg, para) 29 #define FOXIT_DEBUG2(msg, para)
29 #define FOXIT_DEBUG3(msg, para1, para2) 30 #define FOXIT_DEBUG3(msg, para1, para2)
30 #define FOXIT_DEBUG4(msg, para1, para2, para3) 31 #define FOXIT_DEBUG4(msg, para1, para2, para3)
31 #define FOXIT_DEBUG5(msg, para1, para2, para3, param4) 32 #define FOXIT_DEBUG5(msg, para1, para2, para3, param4)
32 #endif 33 #endif
33 34
34 #include "SkDashPathEffect.h" 35 #include "SkDashPathEffect.h"
Tom Sepez 2015/11/09 21:46:16 move these up top.
Lei Zhang 2015/11/10 09:27:56 Done.
35 #include "SkTLazy.h" 36 #include "SkTLazy.h"
36 #include "SkScan.h" 37 #include "SkScan.h"
37 #include "SkRasterClip.h" 38 #include "SkRasterClip.h"
38 #include "SkStroke.h" 39 #include "SkStroke.h"
39 40
41 #include "core/src/fxge/agg/include/fx_agg_driver.h"
40 #include "fx_skia_blitter_new.h" 42 #include "fx_skia_blitter_new.h"
41 #include "../agg/fx_agg_driver.h"
42 #include "fx_skia_device.h" 43 #include "fx_skia_device.h"
44
43 /// Run-length-encoded supersampling antialiased blitter. 45 /// Run-length-encoded supersampling antialiased blitter.
44 class SuperBlitter_skia { 46 class SuperBlitter_skia {
45 public: 47 public:
46 static void DrawPath(const SkPath& srcPath, 48 static void DrawPath(const SkPath& srcPath,
47 SkBlitter* blitter, 49 SkBlitter* blitter,
48 const SkRasterClip& rect, 50 const SkRasterClip& rect,
49 const SkPaint& origPaint); 51 const SkPaint& origPaint);
50 }; 52 };
51 FX_BOOL FxSkDrawTreatAsHairline(const SkPaint& paint, SkScalar* coverage) { 53 FX_BOOL FxSkDrawTreatAsHairline(const SkPaint& paint, SkScalar* coverage) {
52 if (SkPaint::kStroke_Style != paint.getStyle()) 54 if (SkPaint::kStroke_Style != paint.getStyle())
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 new CFX_SkiaDeviceDriver(pBitmap, dither_bits, FALSE, pOriDevice, FALSE); 622 new CFX_SkiaDeviceDriver(pBitmap, dither_bits, FALSE, pOriDevice, FALSE);
621 SetDeviceDriver(pDriver); 623 SetDeviceDriver(pDriver);
622 return TRUE; 624 return TRUE;
623 } 625 }
624 CFX_SkiaDevice::~CFX_SkiaDevice() { 626 CFX_SkiaDevice::~CFX_SkiaDevice() {
625 if (m_bOwnedBitmap && GetBitmap()) 627 if (m_bOwnedBitmap && GetBitmap())
626 delete GetBitmap(); 628 delete GetBitmap();
627 } 629 }
628 630
629 #endif 631 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698