diff options
author | awalker@google.com <awalker@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-14 17:47:00 +0000 |
---|---|---|
committer | awalker@google.com <awalker@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-14 17:47:00 +0000 |
commit | b49cbcf2cb1808755be7d629df962850756fe691 (patch) | |
tree | 66a1cbbeda98ff0a2be564fb164bbd274245aea8 /webkit/port | |
parent | 6328338ef2dcd7fe075cb4065c644847d5330a71 (diff) | |
download | chromium_src-b49cbcf2cb1808755be7d629df962850756fe691.zip chromium_src-b49cbcf2cb1808755be7d629df962850756fe691.tar.gz chromium_src-b49cbcf2cb1808755be7d629df962850756fe691.tar.bz2 |
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@873 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port')
-rw-r--r-- | webkit/port/platform/PlatformScrollBar.h | 2 | ||||
-rw-r--r-- | webkit/port/platform/PlatformScrollBarWin.cpp | 6 | ||||
-rw-r--r-- | webkit/port/platform/ScrollViewWin.cpp | 4 | ||||
-rw-r--r-- | webkit/port/platform/graphics/FontWin.cpp | 2 | ||||
-rw-r--r-- | webkit/port/platform/graphics/GraphicsContextSkia.cpp | 4 | ||||
-rw-r--r-- | webkit/port/platform/graphics/ImageSkia.cpp | 6 | ||||
-rw-r--r-- | webkit/port/platform/graphics/PlatformContextSkia.cpp | 2 | ||||
-rw-r--r-- | webkit/port/platform/graphics/PlatformContextSkia.h | 2 | ||||
-rw-r--r-- | webkit/port/platform/graphics/SkGraphicsContext.cpp | 6 | ||||
-rw-r--r-- | webkit/port/platform/graphics/SkGraphicsContext.h | 8 | ||||
-rw-r--r-- | webkit/port/platform/graphics/SkPaintContext.cpp | 4 | ||||
-rw-r--r-- | webkit/port/platform/graphics/SkPaintContext.h | 8 | ||||
-rw-r--r-- | webkit/port/platform/graphics/svg/SVGPaintServerSkia.cpp | 2 | ||||
-rw-r--r-- | webkit/port/platform/graphics/svg/SkiaSupport.cpp | 2 |
14 files changed, 29 insertions, 29 deletions
diff --git a/webkit/port/platform/PlatformScrollBar.h b/webkit/port/platform/PlatformScrollBar.h index 0a3426b..ee619e1 100644 --- a/webkit/port/platform/PlatformScrollBar.h +++ b/webkit/port/platform/PlatformScrollBar.h @@ -33,7 +33,7 @@ #include "Timer.h" namespace gfx { -class PlatformCanvas; +class PlatformCanvasWin; } namespace WebCore { diff --git a/webkit/port/platform/PlatformScrollBarWin.cpp b/webkit/port/platform/PlatformScrollBarWin.cpp index 9845c05..c921e97 100644 --- a/webkit/port/platform/PlatformScrollBarWin.cpp +++ b/webkit/port/platform/PlatformScrollBarWin.cpp @@ -45,7 +45,7 @@ #undef LOG #include "base/gfx/native_theme.h" -#include "base/gfx/platform_canvas.h" +#include "base/gfx/platform_canvas_win.h" #include "base/win_util.h" #include "webkit/glue/webframe_impl.h" #include "webkit/glue/webkit_glue.h" @@ -189,7 +189,7 @@ void PlatformScrollbar::DrawTickmarks(GraphicsContext* context) const // will not be serialized, i.e. composition is done in the renderer and // never in the browser. // Prepare the bitmap for drawing the tickmarks on the scroll bar. - gfx::PlatformCanvas* canvas = PlatformContextToPlatformContextSkia( + gfx::PlatformCanvasWin* canvas = PlatformContextToPlatformContextSkia( context->platformContext())->canvas(); // Load the image for the tickmark. @@ -242,7 +242,7 @@ void PlatformScrollbar::paint(GraphicsContext* gc, const IntRect& damageRect) const PlatformContextSkia* const skia = PlatformContextToPlatformContextSkia(gc->platformContext()); const gfx::NativeTheme* const nativeTheme = skia->nativeTheme(); - gfx::PlatformCanvas* const canvas = skia->canvas(); + gfx::PlatformCanvasWin* const canvas = skia->canvas(); // Draw the up/left arrow of the scroll bar. nativeTheme->PaintScrollbarArrow(hdc, getThemeArrowState(Arrow1), diff --git a/webkit/port/platform/ScrollViewWin.cpp b/webkit/port/platform/ScrollViewWin.cpp index 5ac56ed..6761073 100644 --- a/webkit/port/platform/ScrollViewWin.cpp +++ b/webkit/port/platform/ScrollViewWin.cpp @@ -49,7 +49,7 @@ #include <wtf/HashSet.h> #undef LOG -#include "base/gfx/platform_canvas.h" +#include "base/gfx/platform_canvas_win.h" #include "webkit/glue/webframe_impl.h" #include "webkit/glue/webview_impl.h" @@ -314,7 +314,7 @@ void ScrollView::ScrollViewPrivate::highlightMatches( // will not be serialized, i.e. composition is done in the renderer and // never in the browser. // Prepare for drawing the arrows along the scroll bar. - gfx::PlatformCanvas* canvas = PlatformContextToPlatformContextSkia( + gfx::PlatformCanvasWin* canvas = PlatformContextToPlatformContextSkia( context->platformContext())->canvas(); int horz_start = 0; diff --git a/webkit/port/platform/graphics/FontWin.cpp b/webkit/port/platform/graphics/FontWin.cpp index 512a3cf..0287d3f 100644 --- a/webkit/port/platform/graphics/FontWin.cpp +++ b/webkit/port/platform/graphics/FontWin.cpp @@ -32,7 +32,7 @@ #include "SimpleFontData.h" #include "UniscribeStateTextRun.h" -#include "base/gfx/platform_canvas.h" +#include "base/gfx/platform_canvas_win.h" #include "graphics/SkiaUtils.h" #include "webkit/glue/webkit_glue.h" diff --git a/webkit/port/platform/graphics/GraphicsContextSkia.cpp b/webkit/port/platform/graphics/GraphicsContextSkia.cpp index c10cf60..e169a1d 100644 --- a/webkit/port/platform/graphics/GraphicsContextSkia.cpp +++ b/webkit/port/platform/graphics/GraphicsContextSkia.cpp @@ -34,7 +34,7 @@ # include "SkGradientShader.h" #endif -#include "base/gfx/platform_canvas.h" +#include "base/gfx/platform_canvas_win.h" using namespace std; @@ -704,7 +704,7 @@ void GraphicsContext::freePlatformPattern(PlatformPattern* shader) GraphicsContext* GraphicsContext::createOffscreenContext(int width, int height) { - gfx::PlatformCanvas* canvas = new gfx::PlatformCanvas(width, height, false); + gfx::PlatformCanvasWin* canvas = new gfx::PlatformCanvasWin(width, height, false); PlatformContextSkia* pgc = new PlatformContextSkia(canvas); canvas->drawARGB(0, 0, 0, 0, SkPorterDuff::kClear_Mode); diff --git a/webkit/port/platform/graphics/ImageSkia.cpp b/webkit/port/platform/graphics/ImageSkia.cpp index d5930e2..359f6c0 100644 --- a/webkit/port/platform/graphics/ImageSkia.cpp +++ b/webkit/port/platform/graphics/ImageSkia.cpp @@ -47,7 +47,7 @@ #include "base/gfx/bitmap_header.h" #include "base/gfx/image_operations.h" #include "base/gfx/native_theme.h" -#include "base/gfx/platform_canvas.h" +#include "base/gfx/platform_canvas_win.h" #include "webkit/glue/webkit_glue.h" #include "webkit/glue/webkit_resources.h" @@ -129,8 +129,8 @@ void GetTextAreaResizeCorner(Image* image) const int height = PlatformScrollbar::horizontalScrollbarHeight(); // Setup a memory buffer. - gfx::PlatformCanvas canvas(width, height, false); - gfx::PlatformDevice& device = canvas.getTopPlatformDevice(); + gfx::PlatformCanvasWin canvas(width, height, false); + gfx::PlatformDeviceWin& device = canvas.getTopPlatformDevice(); device.prepareForGDI(0, 0, width, height); HDC hdc = device.getBitmapDC(); RECT widgetRect = { 0, 0, width, height }; diff --git a/webkit/port/platform/graphics/PlatformContextSkia.cpp b/webkit/port/platform/graphics/PlatformContextSkia.cpp index 4019578..c2586b3 100644 --- a/webkit/port/platform/graphics/PlatformContextSkia.cpp +++ b/webkit/port/platform/graphics/PlatformContextSkia.cpp @@ -31,7 +31,7 @@ #include "PlatformContextSkia.h" -PlatformContextSkia::PlatformContextSkia(gfx::PlatformCanvas* canvas) +PlatformContextSkia::PlatformContextSkia(gfx::PlatformCanvasWin* canvas) : SkGraphicsContext(canvas) { } diff --git a/webkit/port/platform/graphics/PlatformContextSkia.h b/webkit/port/platform/graphics/PlatformContextSkia.h index 83e4e2c..6afde66 100644 --- a/webkit/port/platform/graphics/PlatformContextSkia.h +++ b/webkit/port/platform/graphics/PlatformContextSkia.h @@ -47,7 +47,7 @@ class PlatformContextSkia : public SkGraphicsContext { friend class WebCore::GraphicsContextPlatformPrivate; public: // For printing, there shouldn't be any canvas. canvas can be NULL. - PlatformContextSkia(gfx::PlatformCanvas* canvas); + PlatformContextSkia(gfx::PlatformCanvasWin* canvas); ~PlatformContextSkia(); protected: diff --git a/webkit/port/platform/graphics/SkGraphicsContext.cpp b/webkit/port/platform/graphics/SkGraphicsContext.cpp index 74cd8ed..0843840 100644 --- a/webkit/port/platform/graphics/SkGraphicsContext.cpp +++ b/webkit/port/platform/graphics/SkGraphicsContext.cpp @@ -33,7 +33,7 @@ #include "base/gfx/image_operations.h" #include "base/gfx/native_theme.h" -#include "base/gfx/platform_canvas.h" +#include "base/gfx/platform_canvas_win.h" #include "base/gfx/skia_utils.h" #include "GraphicsContextPrivate.h" #include "NativeImageSkia.h" @@ -146,7 +146,7 @@ void DrawResampledBitmap(SkCanvas& canvas, } // namespace -SkGraphicsContext::SkGraphicsContext(gfx::PlatformCanvas* canvas) +SkGraphicsContext::SkGraphicsContext(gfx::PlatformCanvasWin* canvas) : canvas_(canvas), paint_context_(NULL), own_canvas_(false) { @@ -425,7 +425,7 @@ const SkBitmap* SkGraphicsContext::bitmap() const return &canvas_->getDevice()->accessBitmap(false); } -gfx::PlatformCanvas* SkGraphicsContext::canvas() const +gfx::PlatformCanvasWin* SkGraphicsContext::canvas() const { return canvas_; } diff --git a/webkit/port/platform/graphics/SkGraphicsContext.h b/webkit/port/platform/graphics/SkGraphicsContext.h index c97738a..191dbf6 100644 --- a/webkit/port/platform/graphics/SkGraphicsContext.h +++ b/webkit/port/platform/graphics/SkGraphicsContext.h @@ -47,7 +47,7 @@ class UniscribeStateTextRun; namespace gfx { class NativeTheme; -class PlatformCanvas; +class PlatformCanvasWin; } @@ -67,7 +67,7 @@ class SkGraphicsContext { RESAMPLE_AWESOME, }; - SkGraphicsContext(gfx::PlatformCanvas* canvas); + SkGraphicsContext(gfx::PlatformCanvasWin* canvas); ~SkGraphicsContext(); // Gets the default theme. @@ -130,7 +130,7 @@ class SkGraphicsContext { // Warning: This function is deprecated so the users are reminded that they // should use this layer of indirection instead of using the canvas directly. // This is to help with the eventual serialization. - gfx::PlatformCanvas* canvas() const; + gfx::PlatformCanvasWin* canvas() const; // Returns if the context is a printing context instead of a display context. // Bitmap shouldn't be resampled when printing to keep the best possible @@ -147,7 +147,7 @@ class SkGraphicsContext { SkPaintContext* paint_context_; // Can be NULL when serializing. - gfx::PlatformCanvas* canvas_; + gfx::PlatformCanvasWin* canvas_; // Signal that we own the canvas and must delete it on destruction. bool own_canvas_; diff --git a/webkit/port/platform/graphics/SkPaintContext.cpp b/webkit/port/platform/graphics/SkPaintContext.cpp index 8302153..71ea81f 100644 --- a/webkit/port/platform/graphics/SkPaintContext.cpp +++ b/webkit/port/platform/graphics/SkPaintContext.cpp @@ -33,7 +33,7 @@ #include "SkShader.h" #include "SkDashPathEffect.h" -#include "base/gfx/platform_canvas.h" +#include "base/gfx/platform_canvas_win.h" namespace { @@ -127,7 +127,7 @@ struct SkPaintContext::State { }; // Context will be NULL if painting should be disabled. -SkPaintContext::SkPaintContext(gfx::PlatformCanvas* context) +SkPaintContext::SkPaintContext(gfx::PlatformCanvasWin* context) : canvas_(context), state_stack_(sizeof(State)) { State* state = reinterpret_cast<State*>(state_stack_.push_back()); diff --git a/webkit/port/platform/graphics/SkPaintContext.h b/webkit/port/platform/graphics/SkPaintContext.h index c56d30f..dd0f215 100644 --- a/webkit/port/platform/graphics/SkPaintContext.h +++ b/webkit/port/platform/graphics/SkPaintContext.h @@ -37,7 +37,7 @@ #include "SkPath.h" namespace gfx { -class PlatformCanvas; +class PlatformCanvasWin; } // This class is the interface to communicate to Skia. It is meant to be as @@ -60,7 +60,7 @@ class SkPaintContext { }; // Context will be NULL if painting should be disabled. - SkPaintContext(gfx::PlatformCanvas* context); + SkPaintContext(gfx::PlatformCanvasWin* context); ~SkPaintContext(); void save(); @@ -103,7 +103,7 @@ class SkPaintContext { SkColor fillColor() const; protected: - gfx::PlatformCanvas* canvas() { + gfx::PlatformCanvasWin* canvas() { return canvas_; } @@ -112,7 +112,7 @@ class SkPaintContext { struct State; // NULL indicates painting is disabled. Never delete this object. - gfx::PlatformCanvas* canvas_; + gfx::PlatformCanvasWin* canvas_; // States stack. Enables local drawing state change with save()/restore() // calls. diff --git a/webkit/port/platform/graphics/svg/SVGPaintServerSkia.cpp b/webkit/port/platform/graphics/svg/SVGPaintServerSkia.cpp index 13c1f44..d952f74 100644 --- a/webkit/port/platform/graphics/svg/SVGPaintServerSkia.cpp +++ b/webkit/port/platform/graphics/svg/SVGPaintServerSkia.cpp @@ -35,7 +35,7 @@ #include "GraphicsContext.h" #include "RenderPath.h" -#include "base/gfx/platform_canvas.h" +#include "base/gfx/platform_canvas_win.h" #include "SkiaUtils.h" #include "SkDashPathEffect.h" diff --git a/webkit/port/platform/graphics/svg/SkiaSupport.cpp b/webkit/port/platform/graphics/svg/SkiaSupport.cpp index 2a66850..8e45abe 100644 --- a/webkit/port/platform/graphics/svg/SkiaSupport.cpp +++ b/webkit/port/platform/graphics/svg/SkiaSupport.cpp @@ -41,7 +41,7 @@ #include "SVGPaintServer.h" #include "SVGRenderStyle.h" -#include "base/gfx/platform_canvas.h" +#include "base/gfx/platform_canvas_win.h" #include "SkiaUtils.h" #include "SkDashPathEffect.h" |