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

Side by Side Diff: sky/engine/core/html/canvas/Path2D.h

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012, 2013 Adobe Systems Incorporated. All rights reserved. 2 * Copyright (C) 2012, 2013 Adobe Systems Incorporated. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 static PassRefPtr<Path2D> create(const Path& path) { return adoptRef(new Pat h2D(path)); } 48 static PassRefPtr<Path2D> create(const Path& path) { return adoptRef(new Pat h2D(path)); }
49 49
50 const Path& path() const { return m_path; } 50 const Path& path() const { return m_path; }
51 51
52 void addPath(Path2D* path) 52 void addPath(Path2D* path)
53 { 53 {
54 m_path.addPath(path->path(), AffineTransform(1, 0, 0, 1, 0, 0)); 54 m_path.addPath(path->path(), AffineTransform(1, 0, 0, 1, 0, 0));
55 } 55 }
56 56
57 virtual ~Path2D() { } 57 virtual ~Path2D() { }
58 void trace(Visitor*) { }
59 58
60 private: 59 private:
61 Path2D() : CanvasPathMethods() 60 Path2D() : CanvasPathMethods()
62 { 61 {
63 } 62 }
64 63
65 Path2D(const Path& path) 64 Path2D(const Path& path)
66 : CanvasPathMethods(path) 65 : CanvasPathMethods(path)
67 { 66 {
68 } 67 }
69 68
70 Path2D(Path2D* path) 69 Path2D(Path2D* path)
71 : CanvasPathMethods(path->path()) 70 : CanvasPathMethods(path->path())
72 { 71 {
73 } 72 }
74 }; 73 };
75 74
76 } // namespace blink 75 } // namespace blink
77 76
78 #endif // Path2D_h 77 #endif // Path2D_h
OLDNEW
« no previous file with comments | « sky/engine/core/html/canvas/HitRegion.cpp ('k') | sky/engine/core/html/canvas/WebGLActiveInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698