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

Unified Diff: skia/ext/bitmap_platform_device_android.h

Issue 59133008: ozone: Support building without cairo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & fix whitespace Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « skia/ext/bitmap_platform_device.h ('k') | skia/ext/bitmap_platform_device_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/bitmap_platform_device_android.h
diff --git a/skia/ext/bitmap_platform_device_android.h b/skia/ext/bitmap_platform_device_android.h
deleted file mode 100644
index 4e1735f1f5acb9efdc339951139b3e7c9eb486af..0000000000000000000000000000000000000000
--- a/skia/ext/bitmap_platform_device_android.h
+++ /dev/null
@@ -1,60 +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_BITMAP_PLATFORM_DEVICE_ANDROID_H_
-#define SKIA_EXT_BITMAP_PLATFORM_DEVICE_ANDROID_H_
-
-#include "base/memory/ref_counted.h"
-#include "base/compiler_specific.h"
-#include "skia/ext/platform_device.h"
-
-namespace skia {
-
-// -----------------------------------------------------------------------------
-// For now we just use SkBitmap for SkBitmapDevice
-//
-// This is all quite ok for test_shell. In the future we will want to use
-// shared memory between the renderer and the main process at least. In this
-// case we'll probably create the buffer from a precreated region of memory.
-// -----------------------------------------------------------------------------
-class BitmapPlatformDevice : public SkBitmapDevice, public PlatformDevice {
- public:
- // Construct a BitmapPlatformDevice. |is_opaque| should be set if the caller
- // knows the bitmap will be completely opaque and allows some optimizations.
- // The bitmap is not initialized.
- static BitmapPlatformDevice* Create(int width, int height, bool is_opaque);
-
- // Construct a BitmapPlatformDevice, as above.
- // If |is_opaque| is false, the bitmap is initialized to 0.
- static BitmapPlatformDevice* CreateAndClear(int width, int height,
- bool is_opaque);
-
- // This doesn't take ownership of |data|. If |data| is null, the bitmap
- // is not initialized to 0.
- static BitmapPlatformDevice* Create(int width, int height, bool is_opaque,
- uint8_t* data);
-
- // Create a BitmapPlatformDevice from an already constructed bitmap;
- // you should probably be using Create(). This may become private later if
- // we ever have to share state between some native drawing UI and Skia, like
- // the Windows and Mac versions of this class do.
- explicit BitmapPlatformDevice(const SkBitmap& other);
- virtual ~BitmapPlatformDevice();
-
- virtual PlatformSurface BeginPlatformPaint() OVERRIDE;
- virtual void DrawToNativeContext(PlatformSurface surface, int x, int y,
- const PlatformRect* src_rect) OVERRIDE;
-
- protected:
- virtual SkBaseDevice* onCreateCompatibleDevice(SkBitmap::Config, int width,
- int height, bool isOpaque,
- Usage usage) OVERRIDE;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(BitmapPlatformDevice);
-};
-
-} // namespace skia
-
-#endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_ANDROID_H_
« no previous file with comments | « skia/ext/bitmap_platform_device.h ('k') | skia/ext/bitmap_platform_device_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698