Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1620)

Unified Diff: skia/ext/vector_platform_device_emf_win.cc

Issue 6691067: Fixed a few styles issues in skia::PlatformDevice. Made function names consistent. Added Begin/En... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « skia/ext/vector_platform_device_emf_win.h ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/vector_platform_device_emf_win.cc
===================================================================
--- skia/ext/vector_platform_device_emf_win.cc (revision 80484)
+++ skia/ext/vector_platform_device_emf_win.cc (working copy)
@@ -115,6 +115,9 @@
SkASSERT(previous_pen_ == NULL);
}
+HDC VectorPlatformDeviceEmf::BeginPlatformPaint() {
+ return hdc_;
+}
void VectorPlatformDeviceEmf::drawPaint(const SkDraw& draw,
const SkPaint& paint) {
@@ -194,14 +197,14 @@
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 @@
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 @@
SkASSERT(false);
break;
}
- endPlatformPaint();
+ EndPlatformPaint();
Cleanup();
}
@@ -656,7 +659,7 @@
}
}
- HDC dc = beginPlatformPaint();
+ HDC dc = BeginPlatformPaint();
BITMAPINFOHEADER hdr;
FillBitmapInfoHeader(src_size_x, src_size_y, &hdr);
if (is_translucent) {
@@ -722,7 +725,7 @@
SRCCOPY);
SkASSERT(result);
}
- endPlatformPaint();
+ EndPlatformPaint();
Cleanup();
}
« no previous file with comments | « skia/ext/vector_platform_device_emf_win.h ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698