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

Side by Side Diff: Source/platform/graphics/GraphicsTypes.h

Issue 1307143005: Make 2D canvas smarter about chosing whether or not to use GPU acceleration (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 CompositeDestinationAtop, 68 CompositeDestinationAtop,
69 CompositeXOR, 69 CompositeXOR,
70 CompositePlusLighter 70 CompositePlusLighter
71 }; 71 };
72 72
73 enum OpacityMode { 73 enum OpacityMode {
74 NonOpaque, 74 NonOpaque,
75 Opaque, 75 Opaque,
76 }; 76 };
77 77
78 enum AccelerationHint {
79 PreferAcceleration,
80 PreferNoAcceleration,
81 };
82
78 // TODO(junov): crbug.com/453113 relocate ShadowMode to CanvasRenderingContext2D State.h once 83 // TODO(junov): crbug.com/453113 relocate ShadowMode to CanvasRenderingContext2D State.h once
79 // GraphicsContext no longer uses it. 84 // GraphicsContext no longer uses it.
80 enum ShadowMode { 85 enum ShadowMode {
81 DrawShadowAndForeground, 86 DrawShadowAndForeground,
82 DrawShadowOnly, 87 DrawShadowOnly,
83 DrawForegroundOnly 88 DrawForegroundOnly
84 }; 89 };
85 90
86 enum AntiAliasingMode { 91 enum AntiAliasingMode {
87 NotAntiAliased, 92 NotAntiAliased,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 146
142 PLATFORM_EXPORT String textAlignName(TextAlign); 147 PLATFORM_EXPORT String textAlignName(TextAlign);
143 PLATFORM_EXPORT bool parseTextAlign(const String&, TextAlign&); 148 PLATFORM_EXPORT bool parseTextAlign(const String&, TextAlign&);
144 149
145 PLATFORM_EXPORT String textBaselineName(TextBaseline); 150 PLATFORM_EXPORT String textBaselineName(TextBaseline);
146 PLATFORM_EXPORT bool parseTextBaseline(const String&, TextBaseline&); 151 PLATFORM_EXPORT bool parseTextBaseline(const String&, TextBaseline&);
147 152
148 } // namespace blink 153 } // namespace blink
149 154
150 #endif 155 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698