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

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

Issue 10915065: Add PlatformPictureSkia and RecordingPlatformDeviceSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix SkProxyCanvas leak Created 8 years, 3 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) 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 #include "base/logging.h" 5 #include "base/logging.h"
6 #include "skia/ext/platform_device.h" 6 #include "skia/ext/platform_device.h"
7 7
8 #include "third_party/skia/include/core/SkMetaData.h" 8 #include "third_party/skia/include/core/SkMetaData.h"
9 9
10 namespace skia { 10 namespace skia {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 bool IsPreviewMetafile(const SkCanvas& canvas) { 70 bool IsPreviewMetafile(const SkCanvas& canvas) {
71 return GetBoolMetaData(canvas, kIsPreviewMetafileKey); 71 return GetBoolMetaData(canvas, kIsPreviewMetafileKey);
72 } 72 }
73 #endif 73 #endif
74 74
75 bool PlatformDevice::SupportsPlatformPaint() { 75 bool PlatformDevice::SupportsPlatformPaint() {
76 return true; 76 return true;
77 } 77 }
78 78
79 bool PlatformDevice::SupportsDirectPlatformPaint() {
80 return SupportsPlatformPaint();
81 }
82
79 } // namespace skia 83 } // namespace skia
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698