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

Side by Side Diff: include/core/SkSurfaceProps.h

Issue 551463004: introduce Props to surface (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: handle dither and aa at the canvas level Created 6 years, 3 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 2012 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 SkSurfaceInfo_DEFINED
9 #define SkSurfaceInfo_DEFINED
10
11 #include "SkPoint.h"
12
13 enum SkPixelGeometry {
14 kUnknown_SkPixelGeometry,
15 kLegacyLCD_SkPixelGeometry,
bungeman-skia 2014/09/15 20:47:13 Throw this in at end and give big scary name and a
16 kRGB_H_SkPixelGeometry,
17 kBGR_H_SkPixelGeometry,
18 kRGB_V_SkPixelGeometry,
19 kBGR_V_SkPixelGeometry,
20 };
21
22 class SkSurfaceProps {
23 public:
24 SkSurfaceProps();
25 SkSurfaceProps(int x, int y, uint32_t flags, SkPixelGeometry);
26
27 enum DisallowFlags {
28 kAntiAlias_DisallowFlag = 1 << 0,
29 kDither_DisallowFlag = 1 << 1,
30 };
31
32 SkIPoint fOrigin;
bsalomon 2014/09/15 20:09:04 Origin needs some explanation. I'm torn between s
33 uint32_t fDisallowFlags;
34 SkPixelGeometry fPixelGeometry;
35 };
36
37 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698