OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include <windows.h> | 5 #include <windows.h> |
6 #include <psapi.h> | 6 #include <psapi.h> |
| 7 #include <stddef.h> |
7 | 8 |
8 #include "base/debug/gdi_debug_util_win.h" | 9 #include "base/debug/gdi_debug_util_win.h" |
9 #include "base/logging.h" | 10 #include "base/logging.h" |
10 #include "base/win/win_util.h" | 11 #include "base/win/win_util.h" |
11 #include "skia/ext/bitmap_platform_device_win.h" | 12 #include "skia/ext/bitmap_platform_device_win.h" |
12 #include "skia/ext/platform_canvas.h" | 13 #include "skia/ext/platform_canvas.h" |
13 #include "skia/ext/skia_utils_win.h" | 14 #include "skia/ext/skia_utils_win.h" |
14 #include "third_party/skia/include/core/SkMatrix.h" | 15 #include "third_party/skia/include/core/SkMatrix.h" |
15 #include "third_party/skia/include/core/SkRefCnt.h" | 16 #include "third_party/skia/include/core/SkRefCnt.h" |
16 #include "third_party/skia/include/core/SkRegion.h" | 17 #include "third_party/skia/include/core/SkRegion.h" |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 int height, | 313 int height, |
313 bool is_opaque, | 314 bool is_opaque, |
314 HANDLE shared_section, | 315 HANDLE shared_section, |
315 OnFailureType failureType) { | 316 OnFailureType failureType) { |
316 skia::RefPtr<SkBaseDevice> dev = skia::AdoptRef( | 317 skia::RefPtr<SkBaseDevice> dev = skia::AdoptRef( |
317 BitmapPlatformDevice::Create(width, height, is_opaque, shared_section)); | 318 BitmapPlatformDevice::Create(width, height, is_opaque, shared_section)); |
318 return CreateCanvas(dev, failureType); | 319 return CreateCanvas(dev, failureType); |
319 } | 320 } |
320 | 321 |
321 } // namespace skia | 322 } // namespace skia |
OLD | NEW |