Index: base/win/scoped_hdc.h |
diff --git a/base/win/scoped_hdc.h b/base/win/scoped_hdc.h |
index 8b316caa08d9c3339bef7bff32b19471e741d348..9e2ea623b6cc8837fb6cd1fd24dbf155e50ed684 100644 |
--- a/base/win/scoped_hdc.h |
+++ b/base/win/scoped_hdc.h |
@@ -35,19 +35,18 @@ class ScopedGetDC { |
private: |
HWND hwnd_; |
HDC hdc_; |
+ |
DISALLOW_COPY_AND_ASSIGN(ScopedGetDC); |
}; |
// Like ScopedHandle but for HDC. Only use this on HDCs returned from |
-// CreateCompatibleDC. |
-// TODO(yosin) To eliminate confusion with ScopedGetDC, we should rename |
-// ScopedHDC to ScopedCreateDC. |
-class ScopedHDC { |
+// CreateCompatibleDC, CreateDC and CreateIC. |
+class ScopedCreateDC { |
public: |
- ScopedHDC() : hdc_(NULL) { } |
- explicit ScopedHDC(HDC h) : hdc_(h) { } |
+ ScopedCreateDC() : hdc_(NULL) { } |
+ explicit ScopedCreateDC(HDC h) : hdc_(h) { } |
- ~ScopedHDC() { |
+ ~ScopedCreateDC() { |
Close(); |
} |
@@ -73,7 +72,8 @@ class ScopedHDC { |
} |
HDC hdc_; |
- DISALLOW_COPY_AND_ASSIGN(ScopedHDC); |
+ |
+ DISALLOW_COPY_AND_ASSIGN(ScopedCreateDC); |
}; |
} // namespace win |