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

Side by Side Diff: ui/gfx/canvas_paint_win.h

Issue 659883002: Enable hidpi on Linux, refactor a bit on Windows to share Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: constants Created 6 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 UI_GFX_CANVAS_PAINT_WIN_H_ 5 #ifndef UI_GFX_CANVAS_PAINT_WIN_H_
6 #define UI_GFX_CANVAS_PAINT_WIN_H_ 6 #define UI_GFX_CANVAS_PAINT_WIN_H_
7 7
8 #include "skia/ext/platform_canvas.h" 8 #include "skia/ext/platform_canvas.h"
9 #include "ui/gfx/canvas.h" 9 #include "ui/gfx/canvas.h"
10 #include "ui/gfx/dpi.h"
10 #include "ui/gfx/size.h" 11 #include "ui/gfx/size.h"
11 #include "ui/gfx/win/dpi.h"
12 12
13 namespace gfx { 13 namespace gfx {
14 14
15 // A class designed to help with WM_PAINT operations on Windows. It will create 15 // A class designed to help with WM_PAINT operations on Windows. It will create
16 // the bitmap and canvas with the correct size and transform for the dirty rect. 16 // the bitmap and canvas with the correct size and transform for the dirty rect.
17 // The bitmap will be automatically painted to the screen on destruction. 17 // The bitmap will be automatically painted to the screen on destruction.
18 // 18 //
19 // You MUST call isEmpty before painting to determine if anything needs 19 // You MUST call isEmpty before painting to determine if anything needs
20 // painting. Sometimes the dirty rect can actually be empty, and this makes 20 // painting. Sometimes the dirty rect can actually be empty, and this makes
21 // the bitmap functions we call unhappy. The caller should not paint in this 21 // the bitmap functions we call unhappy. The caller should not paint in this
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 HDC paint_dc_; 67 HDC paint_dc_;
68 PAINTSTRUCT ps_; 68 PAINTSTRUCT ps_;
69 69
70 // Disallow copy and assign. 70 // Disallow copy and assign.
71 DISALLOW_COPY_AND_ASSIGN(CanvasSkiaPaint); 71 DISALLOW_COPY_AND_ASSIGN(CanvasSkiaPaint);
72 }; 72 };
73 73
74 } // namespace gfx 74 } // namespace gfx
75 75
76 #endif // UI_GFX_CANVAS_PAINT_WIN_H_ 76 #endif // UI_GFX_CANVAS_PAINT_WIN_H_
OLDNEW
« no previous file with comments | « ui/gfx/BUILD.gn ('k') | ui/gfx/canvas_paint_win.cc » ('j') | ui/gfx/dpi.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698