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

Unified Diff: skia/ext/platform_device_linux.h

Issue 7633040: CL removing inheritance of SkDevice from PlatformDevice. Flavours of PlatformDevice classes now ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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_device.cc ('k') | skia/ext/platform_device_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/platform_device_linux.h
===================================================================
--- skia/ext/platform_device_linux.h (revision 98225)
+++ skia/ext/platform_device_linux.h (working copy)
@@ -1,38 +0,0 @@
-// 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_PLATFORM_DEVICE_LINUX_H_
-#define SKIA_EXT_PLATFORM_DEVICE_LINUX_H_
-#pragma once
-
-#include "skia/ext/platform_device.h"
-#include "third_party/skia/include/core/SkDevice.h"
-
-namespace skia {
-
-// Blindly copying the mac hierarchy.
-class PlatformDevice : public SkDevice {
- public:
- typedef cairo_t* PlatformSurface;
-
- // Returns if native platform APIs are allowed to render text to this device.
- virtual bool IsNativeFontRenderingAllowed();
-
- virtual PlatformSurface BeginPlatformPaint() = 0;
- virtual void EndPlatformPaint();
-
- virtual void DrawToNativeContext(PlatformSurface surface, int x, int y,
- const PlatformRect* src_rect );
-
- // Sets the opacity of each pixel in the specified region to be opaque.
- virtual void MakeOpaque(int x, int y, int width, int height) { }
-
- protected:
- // Forwards |bitmap| to SkDevice's constructor.
- explicit PlatformDevice(const SkBitmap& bitmap);
-};
-
-} // namespace skia
-
-#endif // SKIA_EXT_PLATFORM_DEVICE_LINUX_H_
« no previous file with comments | « skia/ext/platform_device.cc ('k') | skia/ext/platform_device_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698