OLD | NEW |
1 // Copyright (c) 2008, Google Inc. All rights reserved. | 1 // Copyright (c) 2008, Google Inc. All rights reserved. |
2 // | 2 // |
3 // Redistribution and use in source and binary forms, with or without | 3 // Redistribution and use in source and binary forms, with or without |
4 // modification, are permitted provided that the following conditions are | 4 // modification, are permitted provided that the following conditions are |
5 // met: | 5 // met: |
6 // | 6 // |
7 // * Redistributions of source code must retain the above copyright | 7 // * Redistributions of source code must retain the above copyright |
8 // notice, this list of conditions and the following disclaimer. | 8 // notice, this list of conditions and the following disclaimer. |
9 // * Redistributions in binary form must reproduce the above | 9 // * Redistributions in binary form must reproduce the above |
10 // copyright notice, this list of conditions and the following disclaimer | 10 // copyright notice, this list of conditions and the following disclaimer |
(...skipping 16 matching lines...) Expand all Loading... |
27 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
28 | 28 |
29 #include "config.h" | 29 #include "config.h" |
30 #include "GraphicsContext.h" | 30 #include "GraphicsContext.h" |
31 #include "NativeImageSkia.h" | 31 #include "NativeImageSkia.h" |
32 #include "PlatformContextSkia.h" | 32 #include "PlatformContextSkia.h" |
33 #undef LOG | 33 #undef LOG |
34 #include "SkiaUtils.h" | 34 #include "SkiaUtils.h" |
35 #include "wtf/MathExtras.h" | 35 #include "wtf/MathExtras.h" |
36 | 36 |
37 #include "base/gfx/image_operations.h" // TODO(brettw) remove this depencency. | |
38 #include "base/gfx/skia_utils.h" // TODO(brettw) remove this depencency. | |
39 #include "skia/ext/platform_canvas.h" | 37 #include "skia/ext/platform_canvas.h" |
40 | 38 |
41 #include "SkBitmap.h" | 39 #include "SkBitmap.h" |
42 #include "SkColorPriv.h" | 40 #include "SkColorPriv.h" |
43 #include "SkShader.h" | 41 #include "SkShader.h" |
44 #include "SkDashPathEffect.h" | 42 #include "SkDashPathEffect.h" |
45 | 43 |
46 #if defined(OS_LINUX) | 44 #if defined(OS_LINUX) |
47 #include "GdkSkia.h" | 45 #include "GdkSkia.h" |
48 #endif | 46 #endif |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 | 413 |
416 const SkBitmap* PlatformContextSkia::bitmap() const | 414 const SkBitmap* PlatformContextSkia::bitmap() const |
417 { | 415 { |
418 return &m_canvas->getDevice()->accessBitmap(false); | 416 return &m_canvas->getDevice()->accessBitmap(false); |
419 } | 417 } |
420 | 418 |
421 bool PlatformContextSkia::IsPrinting() | 419 bool PlatformContextSkia::IsPrinting() |
422 { | 420 { |
423 return m_canvas->getTopPlatformDevice().IsVectorial(); | 421 return m_canvas->getTopPlatformDevice().IsVectorial(); |
424 } | 422 } |
OLD | NEW |