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

Side by Side Diff: skia/ext/platform_canvas_win.h

Issue 19486: Lint cleanup. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SKIA_EXT_PLATFORM_CANVAS_WIN_H_ 5 #ifndef SKIA_EXT_PLATFORM_CANVAS_WIN_H_
6 #define SKIA_EXT_PLATFORM_CANVAS_WIN_H_ 6 #define SKIA_EXT_PLATFORM_CANVAS_WIN_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include "skia/ext/platform_device_win.h" 10 #include "skia/ext/platform_device_win.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // case WM_PAINT: { 92 // case WM_PAINT: {
93 // gfx::PlatformCanvasWinPaint canvas(hwnd); 93 // gfx::PlatformCanvasWinPaint canvas(hwnd);
94 // if (!canvas.isEmpty()) { 94 // if (!canvas.isEmpty()) {
95 // ... paint to the canvas ... 95 // ... paint to the canvas ...
96 // } 96 // }
97 // return 0; 97 // return 0;
98 // } 98 // }
99 template <class T> 99 template <class T>
100 class CanvasPaintT : public T { 100 class CanvasPaintT : public T {
101 public: 101 public:
102 CanvasPaintT(HWND hwnd) : hwnd_(hwnd), paint_dc_(NULL), for_paint_(true) { 102 explicit CanvasPaintT(HWND hwnd) : hwnd_(hwnd), paint_dc_(NULL),
103 for_paint_(true) {
103 memset(&ps_, 0, sizeof(ps_)); 104 memset(&ps_, 0, sizeof(ps_));
104 initPaint(true); 105 initPaint(true);
105 } 106 }
106 107
107 CanvasPaintT(HWND hwnd, bool opaque) : hwnd_(hwnd), paint_dc_(NULL), 108 CanvasPaintT(HWND hwnd, bool opaque) : hwnd_(hwnd), paint_dc_(NULL),
108 for_paint_(true) { 109 for_paint_(true) {
109 memset(&ps_, 0, sizeof(ps_)); 110 memset(&ps_, 0, sizeof(ps_));
110 initPaint(opaque); 111 initPaint(opaque);
111 } 112 }
112 113
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // Disallow copy and assign. 192 // Disallow copy and assign.
192 CanvasPaintT(const CanvasPaintT&); 193 CanvasPaintT(const CanvasPaintT&);
193 CanvasPaintT& operator=(const CanvasPaintT&); 194 CanvasPaintT& operator=(const CanvasPaintT&);
194 }; 195 };
195 196
196 typedef CanvasPaintT<PlatformCanvasWin> PlatformCanvasWinPaint; 197 typedef CanvasPaintT<PlatformCanvasWin> PlatformCanvasWinPaint;
197 198
198 } // namespace skia 199 } // namespace skia
199 200
200 #endif // SKIA_EXT_PLATFORM_CANVAS_WIN_H_ 201 #endif // SKIA_EXT_PLATFORM_CANVAS_WIN_H_
201
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698