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

Unified Diff: src/core/SkDeviceProperties.h

Issue 1196683003: remove SkDeviceProperties (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Clean up Created 5 years, 6 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: src/core/SkDeviceProperties.h
diff --git a/src/core/SkDeviceProperties.h b/src/core/SkDeviceProperties.h
deleted file mode 100644
index 7dc4605c37802b670720ece5c68c8d5debc420b3..0000000000000000000000000000000000000000
--- a/src/core/SkDeviceProperties.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright 2014 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef SkDeviceProperties_DEFINED
-#define SkDeviceProperties_DEFINED
-
-#include "SkSurfacePriv.h"
-
-struct SkDeviceProperties {
- SkDeviceProperties(const SkDeviceProperties& src)
- : fUseDFT(src.fUseDFT)
- , fPixelGeometry(src.fPixelGeometry) {
- }
-
- SkDeviceProperties()
- : fUseDFT(false)
- , fPixelGeometry(SkSurfacePropsDefaultPixelGeometry())
- {}
-
- SkDeviceProperties(SkPixelGeometry geo, bool useDFT = false)
- : fUseDFT(useDFT)
- , fPixelGeometry(geo)
- {}
-
- bool useDFT() const { return fUseDFT; }
- SkPixelGeometry pixelGeometry() const { return fPixelGeometry; }
-
- void setPixelGeometry(SkPixelGeometry geo) {
- fPixelGeometry = geo;
- }
-
-private:
- const bool fUseDFT;
- SkPixelGeometry fPixelGeometry;
-};
-
-#endif
« no previous file with comments | « src/core/SkDevice.cpp ('k') | src/core/SkGlyphCache.h » ('j') | src/gpu/SkGpuDevice.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698