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

Unified Diff: skia/ext/platform_device.h

Issue 2629193002: Remove skia::PlatformDevice (Closed)
Patch Set: also remove SK_SUPPORT_LEGACY_GETTOPDEVICE Created 3 years, 11 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
« no previous file with comments | « skia/ext/platform_canvas_unittest.cc ('k') | skia/ext/platform_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/platform_device.h
diff --git a/skia/ext/platform_device.h b/skia/ext/platform_device.h
deleted file mode 100644
index f349a4972137aa9a7203b80070dafa2b0e645c03..0000000000000000000000000000000000000000
--- a/skia/ext/platform_device.h
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) 2012 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_PLATFORM_DEVICE_H_
-#define SKIA_EXT_PLATFORM_DEVICE_H_
-
-#include "build/build_config.h"
-
-#include "skia/ext/native_drawing_context.h"
-#include "third_party/skia/include/core/SkBitmapDevice.h"
-#include "third_party/skia/include/core/SkTypes.h"
-
-class SkMatrix;
-
-namespace skia {
-
-class PlatformDevice;
-
-// The following routines provide accessor points for the functionality
-// exported by the various PlatformDevice ports.
-// All calls to PlatformDevice::* should be routed through these
-// helper functions.
-
-// DEPRECATED
-// Bind a PlatformDevice instance, |platform_device|, to |device|.
-SK_API void SetPlatformDevice(SkBaseDevice* device, PlatformDevice* platform_device);
-
-// DEPRECATED
-// Retrieve the previous argument to SetPlatformDevice().
-SK_API PlatformDevice* GetPlatformDevice(SkBaseDevice* device);
-
-// A SkBitmapDevice is basically a wrapper around SkBitmap that provides a
-// surface for SkCanvas to draw into. PlatformDevice provides a surface
-// Windows can also write to. It also provides functionality to play well
-// with GDI drawing functions. This class is abstract and must be subclassed.
-// It provides the basic interface to implement it either with or without
-// a bitmap backend.
-//
-// PlatformDevice provides an interface which sub-classes of SkBaseDevice can
-// also provide to allow for drawing by the native platform into the device.
-// TODO(robertphillips): Once the bitmap-specific entry points are removed
-// from SkBaseDevice it might make sense for PlatformDevice to be derived
-// from it.
-class SK_API PlatformDevice {
- public:
- virtual ~PlatformDevice();
-
-// Only implemented in bitmap_platform_device_win.
-#if defined(WIN32)
- // The DC that corresponds to the bitmap, used for GDI operations drawing
- // into the bitmap. This is possibly heavyweight, so it should be existant
- // only during one pass of rendering.
- virtual NativeDrawingContext BeginPlatformPaint(const SkMatrix& transform,
- const SkIRect& clip_bounds) = 0;
-#endif
-};
-
-} // namespace skia
-
-#endif // SKIA_EXT_PLATFORM_DEVICE_H_
« no previous file with comments | « skia/ext/platform_canvas_unittest.cc ('k') | skia/ext/platform_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698