Skip to content

Commit

Permalink
Remove unused gfx::Canvas API
Browse files Browse the repository at this point in the history
Canvas::BeginPlatformPaint() and EndPlatformPaint() have no callers.

R=danakj@chromium.org
CC=djsollen@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#353889}
  • Loading branch information
Naburimannu authored and Commit bot committed Oct 13, 2015
1 parent b56f54f commit 35f9701
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions ui/gfx/canvas.cc
Original file line number Diff line number Diff line change
Expand Up @@ -531,14 +531,6 @@ void Canvas::TileImageInt(const ImageSkia& image,
canvas_->drawRect(dest_rect, paint);
}

NativeDrawingContext Canvas::BeginPlatformPaint() {
return skia::BeginPlatformPaint(canvas_);
}

void Canvas::EndPlatformPaint() {
skia::EndPlatformPaint(canvas_);
}

void Canvas::Transform(const gfx::Transform& transform) {
canvas_->concat(transform.matrix());
}
Expand Down
8 changes: 0 additions & 8 deletions ui/gfx/canvas.h
Original file line number Diff line number Diff line change
Expand Up @@ -389,14 +389,6 @@ class GFX_EXPORT Canvas {
int w,
int h);

// Returns a native drawing context for platform specific drawing routines to
// use. Must be balanced by a call to EndPlatformPaint().
NativeDrawingContext BeginPlatformPaint();

// Signifies the end of platform drawing using the native drawing context
// returned by BeginPlatformPaint().
void EndPlatformPaint();

// Apply transformation on the canvas.
void Transform(const Transform& transform);

Expand Down

0 comments on commit 35f9701

Please sign in to comment.