OLD | NEW |
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 #include "skia/ext/platform_canvas.h" | 5 #include "skia/ext/platform_canvas.h" |
6 | 6 |
7 #include "skia/ext/bitmap_platform_device_mac.h" | 7 #include "skia/ext/bitmap_platform_device_mac.h" |
8 #include "third_party/skia/include/core/SkTypes.h" | 8 #include "third_party/skia/include/core/SkTypes.h" |
9 | 9 |
10 namespace skia { | 10 namespace skia { |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 56 |
57 void PlatformCanvas::endPlatformPaint() { | 57 void PlatformCanvas::endPlatformPaint() { |
58 // Flushing will be done in onAccessBitmap. | 58 // Flushing will be done in onAccessBitmap. |
59 } | 59 } |
60 | 60 |
61 SkDevice* PlatformCanvas::createDevice(SkBitmap::Config config, | 61 SkDevice* PlatformCanvas::createDevice(SkBitmap::Config config, |
62 int width, | 62 int width, |
63 int height, | 63 int height, |
64 bool is_opaque, bool isForLayer) { | 64 bool is_opaque, bool isForLayer) { |
65 SkASSERT(config == SkBitmap::kARGB_8888_Config); | 65 SkASSERT(config == SkBitmap::kARGB_8888_Config); |
66 return BitmapPlatformDevice::CreateWithContext(NULL, width, height, | 66 return BitmapPlatformDevice::Create(NULL, width, height, is_opaque); |
67 is_opaque); | |
68 } | 67 } |
69 | 68 |
70 } // namespace skia | 69 } // namespace skia |
OLD | NEW |