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

Unified Diff: skia/ext/platform_device_linux.h

Issue 7019013: Removal of dependencies on PlatformDevice classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Addressing comments. Created 9 years, 7 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/platform_device_linux.h
===================================================================
--- skia/ext/platform_device_linux.h (revision 85672)
+++ skia/ext/platform_device_linux.h (working copy)
@@ -6,10 +6,9 @@
#define SKIA_EXT_PLATFORM_DEVICE_LINUX_H_
#pragma once
+#include "skia/ext/platform_device.h"
#include "third_party/skia/include/core/SkDevice.h"
-typedef struct _cairo cairo_t;
-
namespace skia {
// Blindly copying the mac hierarchy.
@@ -26,6 +25,9 @@
virtual PlatformSurface BeginPlatformPaint() = 0;
virtual void EndPlatformPaint();
+ virtual void DrawToNativeContext(PlatformSurface surface, int x, int y,
+ const PlatformRect* src_rect );
+
protected:
// Forwards |bitmap| to SkDevice's constructor.
explicit PlatformDevice(const SkBitmap& bitmap);

Powered by Google App Engine
This is Rietveld 408576698