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

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

Issue 1382883002: Fixing performance issue of creating imagebitmap from ImageData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove the benchmark test which has been landed already Created 5 years, 2 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
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 enum OpacityMode { 73 enum OpacityMode {
74 NonOpaque, 74 NonOpaque,
75 Opaque, 75 Opaque,
76 }; 76 };
77 77
78 enum AccelerationHint { 78 enum AccelerationHint {
79 PreferAcceleration, 79 PreferAcceleration,
80 PreferNoAcceleration, 80 PreferNoAcceleration,
81 }; 81 };
82 82
83 enum ImageBitmapSourceType {
Justin Novosad 2015/10/14 14:25:28 The code would be more readable if this enum was m
84 FromImageData,
85 NotFromImageData,
86 };
87
83 // TODO(junov): crbug.com/453113 relocate ShadowMode to CanvasRenderingContext2D State.h once 88 // TODO(junov): crbug.com/453113 relocate ShadowMode to CanvasRenderingContext2D State.h once
84 // GraphicsContext no longer uses it. 89 // GraphicsContext no longer uses it.
85 enum ShadowMode { 90 enum ShadowMode {
86 DrawShadowAndForeground, 91 DrawShadowAndForeground,
87 DrawShadowOnly, 92 DrawShadowOnly,
88 DrawForegroundOnly 93 DrawForegroundOnly
89 }; 94 };
90 95
91 enum AntiAliasingMode { 96 enum AntiAliasingMode {
92 NotAntiAliased, 97 NotAntiAliased,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 151
147 PLATFORM_EXPORT String textAlignName(TextAlign); 152 PLATFORM_EXPORT String textAlignName(TextAlign);
148 PLATFORM_EXPORT bool parseTextAlign(const String&, TextAlign&); 153 PLATFORM_EXPORT bool parseTextAlign(const String&, TextAlign&);
149 154
150 PLATFORM_EXPORT String textBaselineName(TextBaseline); 155 PLATFORM_EXPORT String textBaselineName(TextBaseline);
151 PLATFORM_EXPORT bool parseTextBaseline(const String&, TextBaseline&); 156 PLATFORM_EXPORT bool parseTextBaseline(const String&, TextBaseline&);
152 157
153 } // namespace blink 158 } // namespace blink
154 159
155 #endif 160 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698