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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright 2014 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef SkDeviceProperties_DEFINED
9 #define SkDeviceProperties_DEFINED
10
11 #include "SkSurfacePriv.h"
12
13 struct SkDeviceProperties {
14 SkDeviceProperties(const SkDeviceProperties& src)
15 : fUseDFT(src.fUseDFT)
16 , fPixelGeometry(src.fPixelGeometry) {
17 }
18
19 SkDeviceProperties()
20 : fUseDFT(false)
21 , fPixelGeometry(SkSurfacePropsDefaultPixelGeometry())
22 {}
23
24 SkDeviceProperties(SkPixelGeometry geo, bool useDFT = false)
25 : fUseDFT(useDFT)
26 , fPixelGeometry(geo)
27 {}
28
29 bool useDFT() const { return fUseDFT; }
30 SkPixelGeometry pixelGeometry() const { return fPixelGeometry; }
31
32 void setPixelGeometry(SkPixelGeometry geo) {
33 fPixelGeometry = geo;
34 }
35
36 private:
37 const bool fUseDFT;
38 SkPixelGeometry fPixelGeometry;
39 };
40
41 #endif
OLDNEW
« 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