summaryrefslogtreecommitdiffstats
path: root/skia/ext/vector_platform_device_emf_win.cc
diff options
context:
space:
mode:
authoralokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-06 22:12:33 +0000
committeralokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-06 22:12:33 +0000
commit973b7701f2be80ea89cc0799912b64b76a30de5d (patch)
tree2a6e7f587d9e94e26d8a30d56491f2a9fb4621db /skia/ext/vector_platform_device_emf_win.cc
parent00174ef7842eef55f7d697fedf947b5ad415368c (diff)
downloadchromium_src-973b7701f2be80ea89cc0799912b64b76a30de5d.zip
chromium_src-973b7701f2be80ea89cc0799912b64b76a30de5d.tar.gz
chromium_src-973b7701f2be80ea89cc0799912b64b76a30de5d.tar.bz2
Fixed a few styles issues in skia::PlatformDevice. Made function names consistent. Added Begin/EndPlatformPaint on Mac.
Review URL: http://codereview.chromium.org/6691067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80707 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/vector_platform_device_emf_win.cc')
-rw-r--r--skia/ext/vector_platform_device_emf_win.cc15
1 files changed, 9 insertions, 6 deletions
diff --git a/skia/ext/vector_platform_device_emf_win.cc b/skia/ext/vector_platform_device_emf_win.cc
index 07d1083..621ba32 100644
--- a/skia/ext/vector_platform_device_emf_win.cc
+++ b/skia/ext/vector_platform_device_emf_win.cc
@@ -115,6 +115,9 @@ VectorPlatformDeviceEmf::~VectorPlatformDeviceEmf() {
SkASSERT(previous_pen_ == NULL);
}
+HDC VectorPlatformDeviceEmf::BeginPlatformPaint() {
+ return hdc_;
+}
void VectorPlatformDeviceEmf::drawPaint(const SkDraw& draw,
const SkPaint& paint) {
@@ -194,14 +197,14 @@ void VectorPlatformDeviceEmf::drawRect(const SkDraw& draw,
if (!ApplyPaint(paint)) {
return;
}
- HDC dc = beginPlatformPaint();
+ HDC dc = BeginPlatformPaint();
if (!Rectangle(dc, SkScalarRound(rect.fLeft),
SkScalarRound(rect.fTop),
SkScalarRound(rect.fRight),
SkScalarRound(rect.fBottom))) {
SkASSERT(false);
}
- endPlatformPaint();
+ EndPlatformPaint();
Cleanup();
}
@@ -227,7 +230,7 @@ void VectorPlatformDeviceEmf::drawPath(const SkDraw& draw,
if (!ApplyPaint(paint)) {
return;
}
- HDC dc = beginPlatformPaint();
+ HDC dc = BeginPlatformPaint();
PlatformDevice::LoadPathToDC(dc, path);
switch (paint.getStyle()) {
case SkPaint::kFill_Style: {
@@ -249,7 +252,7 @@ void VectorPlatformDeviceEmf::drawPath(const SkDraw& draw,
SkASSERT(false);
break;
}
- endPlatformPaint();
+ EndPlatformPaint();
Cleanup();
}
@@ -656,7 +659,7 @@ void VectorPlatformDeviceEmf::InternalDrawBitmap(const SkBitmap& bitmap,
}
}
- HDC dc = beginPlatformPaint();
+ HDC dc = BeginPlatformPaint();
BITMAPINFOHEADER hdr;
FillBitmapInfoHeader(src_size_x, src_size_y, &hdr);
if (is_translucent) {
@@ -722,7 +725,7 @@ void VectorPlatformDeviceEmf::InternalDrawBitmap(const SkBitmap& bitmap,
SRCCOPY);
SkASSERT(result);
}
- endPlatformPaint();
+ EndPlatformPaint();
Cleanup();
}