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

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

Issue 3590011: Update use of SkCanvas and SkDevice to match change in Skia (Closed)
Patch Set: Bump deps again to bring in fix for memory leak Created 10 years, 2 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
« no previous file with comments | « skia/ext/vector_canvas.h ('k') | skia/ext/vector_canvas_linux.cc » ('j') | 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-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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/vector_canvas.h" 5 #include "skia/ext/vector_canvas.h"
6 6
7 namespace skia { 7 namespace skia {
8 8
9 VectorCanvas::VectorCanvas() { 9 VectorCanvas::VectorCanvas()
10 : PlatformCanvas(SkNEW(SkVectorPlatformDeviceFactory)) {
11 }
12
13 VectorCanvas::VectorCanvas(SkDeviceFactory* factory) : PlatformCanvas(factory) {
10 } 14 }
11 15
12 VectorCanvas::~VectorCanvas() { 16 VectorCanvas::~VectorCanvas() {
13 } 17 }
14 18
15 SkBounder* VectorCanvas::setBounder(SkBounder* bounder) { 19 SkBounder* VectorCanvas::setBounder(SkBounder* bounder) {
16 if (!IsTopDeviceVectorial()) 20 if (!IsTopDeviceVectorial())
17 return PlatformCanvas::setBounder(bounder); 21 return PlatformCanvas::setBounder(bounder);
18 22
19 // This function isn't used in the code. Verify this assumption. 23 // This function isn't used in the code. Verify this assumption.
20 SkASSERT(false); 24 SkASSERT(false);
21 return NULL; 25 return NULL;
22 } 26 }
23 27
24 SkDrawFilter* VectorCanvas::setDrawFilter(SkDrawFilter* filter) { 28 SkDrawFilter* VectorCanvas::setDrawFilter(SkDrawFilter* filter) {
25 // This function isn't used in the code. Verify this assumption. 29 // This function isn't used in the code. Verify this assumption.
26 SkASSERT(false); 30 SkASSERT(false);
27 return NULL; 31 return NULL;
28 } 32 }
29 33
30 bool VectorCanvas::IsTopDeviceVectorial() const { 34 bool VectorCanvas::IsTopDeviceVectorial() const {
31 return getTopPlatformDevice().IsVectorial(); 35 return getTopPlatformDevice().IsVectorial();
32 } 36 }
33 37
34 } // namespace skia 38 } // namespace skia
35 39
OLDNEW
« no previous file with comments | « skia/ext/vector_canvas.h ('k') | skia/ext/vector_canvas_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698