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

Unified Diff: skia/ext/canvas_paint_common.h

Issue 8122013: Allow CanvasSkia to bind to an existing SkCanvas. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: 1 more fix Created 9 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 side-by-side diff with in-line comments
Download patch
Index: skia/ext/canvas_paint_common.h
diff --git a/skia/ext/canvas_paint_common.h b/skia/ext/canvas_paint_common.h
new file mode 100644
index 0000000000000000000000000000000000000000..6eed3f4a5899417261a6258df925eb53bf882b40
--- /dev/null
+++ b/skia/ext/canvas_paint_common.h
@@ -0,0 +1,18 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SKIA_EXT_CANVAS_PAINT_COMMON_H_
+#define SKIA_EXT_CANVAS_PAINT_COMMON_H_
+#pragma once
+
+namespace skia {
+class PlatformCanvas;
+
+template<class T> inline PlatformCanvas* GetPlatformCanvas(T* t) {
+ return t;
+}
+
+} // namespace skia
+
+#endif // SKIA_EXT_CANVAS_PAINT_COMMON_H_

Powered by Google App Engine
This is Rietveld 408576698