Commit 3f631cbe authored by spang's avatar spang Committed by Commit bot

Remove unused blitting functions from ui/gfx/blit.cc

There are no remaining call sites for either BlitContextToCanvas or
BlitCanvasToContext. Also remove some leftover #includes.

TEST=Linux built compiles & links.

Review URL: https://codereview.chromium.org/1138753003

Cr-Commit-Position: refs/heads/master@{#330543}
parent c90fbc44
......@@ -21,7 +21,6 @@
#include "skia/ext/platform_canvas.h"
#include "skia/ext/platform_device.h"
#include "third_party/WebKit/public/web/WebBindings.h"
#include "ui/gfx/blit.h"
#include "ui/gfx/canvas.h"
#include "url/url_constants.h"
......
......@@ -8,7 +8,6 @@
#include "base/memory/scoped_ptr.h"
#include "skia/ext/platform_canvas.h"
#include "ui/gfx/blit.h"
#include "ui/gfx/geometry/rect.h"
namespace content {
......
......@@ -110,26 +110,6 @@ void BlitContextToContext(NativeDrawingContext dst_context,
#endif
}
void BlitContextToCanvas(SkCanvas *dst_canvas,
const Rect& dst_rect,
NativeDrawingContext src_context,
const Point& src_origin) {
DCHECK(skia::SupportsPlatformPaint(dst_canvas));
BlitContextToContext(skia::BeginPlatformPaint(dst_canvas), dst_rect,
src_context, src_origin);
skia::EndPlatformPaint(dst_canvas);
}
void BlitCanvasToContext(NativeDrawingContext dst_context,
const Rect& dst_rect,
SkCanvas *src_canvas,
const Point& src_origin) {
DCHECK(skia::SupportsPlatformPaint(src_canvas));
BlitContextToContext(dst_context, dst_rect,
skia::BeginPlatformPaint(src_canvas), src_origin);
skia::EndPlatformPaint(src_canvas);
}
void BlitCanvasToCanvas(SkCanvas *dst_canvas,
const Rect& dst_rect,
SkCanvas *src_canvas,
......
......@@ -22,18 +22,6 @@ GFX_EXPORT void BlitContextToContext(NativeDrawingContext dst_context,
NativeDrawingContext src_context,
const Point& src_origin);
// Blits a rectangle from the source context into the destination canvas.
GFX_EXPORT void BlitContextToCanvas(SkCanvas *dst_canvas,
const Rect& dst_rect,
NativeDrawingContext src_context,
const Point& src_origin);
// Blits a rectangle from the source canvas into the destination context.
GFX_EXPORT void BlitCanvasToContext(NativeDrawingContext dst_context,
const Rect& dst_rect,
SkCanvas *src_canvas,
const Point& src_origin);
// Blits a rectangle from the source canvas into the destination canvas.
GFX_EXPORT void BlitCanvasToCanvas(SkCanvas *dst_canvas,
const Rect& dst_rect,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment