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

Unified Diff: skia/ext/bitmap_platform_device.h

Issue 2011713003: Roll skia to 8cc209111876b7c78b5ec577c9221d8ed5e21024 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 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
« no previous file with comments | « skia/ext/SkMemory_new_handler.cpp ('k') | skia/ext/bitmap_platform_device_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/bitmap_platform_device.h
diff --git a/skia/ext/bitmap_platform_device.h b/skia/ext/bitmap_platform_device.h
deleted file mode 100644
index 60fa180b353c79f94368c4ca4c76313da787aa43..0000000000000000000000000000000000000000
--- a/skia/ext/bitmap_platform_device.h
+++ /dev/null
@@ -1,34 +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_H_
-#define SKIA_EXT_BITMAP_PLATFORM_DEVICE_H_
-
-// This file provides an easy way to include the appropriate
-// BitmapPlatformDevice header file for your platform.
-
-#if defined(WIN32)
-#include "skia/ext/bitmap_platform_device_win.h"
-#elif defined(__APPLE__)
-#include "skia/ext/bitmap_platform_device_mac.h"
-#else
-#include "skia/ext/bitmap_platform_device_skia.h"
-#endif
-
-namespace skia {
- // Returns true if it is unsafe to attempt to allocate an offscreen buffer
- // given these dimensions.
- inline bool RasterDeviceTooBigToAllocate(int width, int height) {
-
-#ifndef SKIA_EXT_RASTER_DEVICE_ALLOCATION_MAX
-#define SKIA_EXT_RASTER_DEVICE_ALLOCATION_MAX (2 * 256 * 1024 * 1024)
-#endif
-
- int bytesPerPixel = 4;
- int64_t bytes = (int64_t)width * height * bytesPerPixel;
- return bytes > SKIA_EXT_RASTER_DEVICE_ALLOCATION_MAX;
- }
-}
-
-#endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_H_
« no previous file with comments | « skia/ext/SkMemory_new_handler.cpp ('k') | skia/ext/bitmap_platform_device_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698