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

Side by Side Diff: skia/ext/platform_canvas_mac.cc

Issue 126150: Rename CreateWithContext to Create (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 6 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
« no previous file with comments | « skia/ext/bitmap_platform_device_mac.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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
OLDNEW
« no previous file with comments | « skia/ext/bitmap_platform_device_mac.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698