Unreviewed, rolling out r111207.
[WebKit-https.git] / Source / Platform / ChangeLog
1 2012-03-19  Sheriff Bot  <webkit.review.bot@gmail.com>
2
3         Unreviewed, rolling out r111207.
4         http://trac.webkit.org/changeset/111207
5         https://bugs.webkit.org/show_bug.cgi?id=81561
6
7         Causing chromium unit test failure (Requested by reveman on
8         #webkit).
9
10         * chromium/public/WebGraphicsContext3D.h:
11
12 2012-03-19  Michal Mocny  <mmocny@google.com>
13
14         [chromium] Updating WebGraphicsContext3D MemoryAllocation callback to accept a struct with have backbuffer suggestion.
15         https://bugs.webkit.org/show_bug.cgi?id=81279
16
17         Reviewed by James Robinson.
18
19         Adding a suggestHaveBackbuffer hint to the WebGraphicsContext3D memory allocation callback.
20
21         * chromium/public/WebGraphicsContext3D.h:
22         (WebGraphicsMemoryAllocationChangedCallbackCHROMIUM):
23         (WebKit::WebGraphicsContext3D::WebGraphicsMemoryAllocationChangedCallbackCHROMIUM::onMemoryAllocationChanged):
24         * chromium/public/WebGraphicsMemoryAllocation.h: Added.
25         (WebKit):
26         (WebGraphicsMemoryAllocation):
27         (WebKit::WebGraphicsMemoryAllocation::WebGraphicsMemoryAllocation):
28
29 2012-03-19  David Reveman  <reveman@chromium.org>
30
31         [Chromium] GL_EXT_occlusion_query_boolean and GL_CHROMIUM_command_buffer_query support.
32         https://bugs.webkit.org/show_bug.cgi?id=80988
33
34         Reviewed by Adrienne Walker.
35
36         Add EXT_occlusion_query API to WebGraphicsContext3D.
37
38         * chromium/public/WebGraphicsContext3D.h:
39         (WebGraphicsContext3D):
40
41 2012-03-08  James Robinson  <jamesr@chromium.org>
42
43         Use an explicit attribute to signal that a context prefers to use a discrete GPU
44         https://bugs.webkit.org/show_bug.cgi?id=80639
45
46         Reviewed by Stephen White.
47
48         Adds preferDiscreteGPU attribute to WebGraphicsContext3D::Attributes. Also remove the forUseOnAnotherThread
49         attribute, this has been dead code for a while now.
50
51         * chromium/public/WebGraphicsContext3D.h:
52         (WebKit::WebGraphicsContext3D::Attributes::Attributes):
53         (Attributes):
54
55 2012-02-24  James Robinson  <jamesr@chromium.org>
56
57         [chromium] WebKit::setColorNames is a client API
58         https://bugs.webkit.org/show_bug.cgi?id=79539
59
60         Reviewed by Darin Fisher.
61
62         * Platform.gypi:
63         * chromium/public/WebColor.h:
64         (WebKit):
65
66 2012-02-24  Sheriff Bot  <webkit.review.bot@gmail.com>
67
68         Unreviewed, rolling out r108860.
69         http://trac.webkit.org/changeset/108860
70         https://bugs.webkit.org/show_bug.cgi?id=79544
71
72         "Breaks Linux compile" (Requested by enne on #webkit).
73
74         * Platform.gypi:
75         * chromium/public/WebColor.h:
76         (WebKit):
77         * chromium/public/WebColorName.h: Renamed from Source/WebKit/chromium/public/WebColorName.h.
78         (WebKit):
79
80 2012-02-24  James Robinson  <jamesr@chromium.org>
81
82         [chromium] WebKit::setColorNames is a client API
83         https://bugs.webkit.org/show_bug.cgi?id=79539
84
85         Reviewed by Darin Fisher.
86
87         * Platform.gypi:
88         * chromium/public/WebColor.h:
89         (WebKit):
90
91 2012-02-22  James Robinson  <jamesr@chromium.org>
92
93         [chromium] Move WebGraphicsContext3D header into the Platform directory
94         https://bugs.webkit.org/show_bug.cgi?id=79301
95
96         Reviewed by Adam Barth.
97
98         Moves WebGraphicsContext3D and WebNonCopyable (which WGC3D depends on).
99
100         * Platform.gypi:
101         * chromium/public/WebGraphicsContext3D.h: Copied from Source/WebKit/chromium/public/platform/WebGraphicsContext3D.h.
102         (WebKit):
103         (WebGraphicsContext3D):
104         (ActiveInfo):
105         (WebKit::WebGraphicsContext3D::Attributes::Attributes):
106         (Attributes):
107         (WebGraphicsContextLostCallback):
108         (WebKit::WebGraphicsContext3D::WebGraphicsContextLostCallback::~WebGraphicsContextLostCallback):
109         (WebGraphicsErrorMessageCallback):
110         (WebKit::WebGraphicsContext3D::WebGraphicsErrorMessageCallback::~WebGraphicsErrorMessageCallback):
111         (WebGraphicsSwapBuffersCompleteCallbackCHROMIUM):
112         (WebKit::WebGraphicsContext3D::WebGraphicsSwapBuffersCompleteCallbackCHROMIUM::~WebGraphicsSwapBuffersCompleteCallbackCHROMIUM):
113         (WebGraphicsMemoryAllocationChangedCallbackCHROMIUM):
114         (WebKit::WebGraphicsContext3D::WebGraphicsMemoryAllocationChangedCallbackCHROMIUM::~WebGraphicsMemoryAllocationChangedCallbackCHROMIUM):
115         (WebKit::WebGraphicsContext3D::~WebGraphicsContext3D):
116         (WebKit::WebGraphicsContext3D::setMemoryAllocationChangedCallbackCHROMIUM):
117         (WebKit::WebGraphicsContext3D::setParentContext):
118         (WebKit::WebGraphicsContext3D::setSwapBuffersCompleteCallbackCHROMIUM):
119         (WebKit::WebGraphicsContext3D::rateLimitOffscreenContextCHROMIUM):
120         (WebKit::WebGraphicsContext3D::setContextLostCallback):
121         (WebKit::WebGraphicsContext3D::setErrorMessageCallback):
122         (WebKit::WebGraphicsContext3D::getGraphicsResetStatusARB):
123         (WebKit::WebGraphicsContext3D::getTranslatedShaderSourceANGLE):
124         (WebKit::WebGraphicsContext3D::texImageIOSurface2DCHROMIUM):
125         (WebKit::WebGraphicsContext3D::texStorage2DEXT):
126         (WebKit::WebGraphicsContext3D::onCreateGrGLInterface):
127         * chromium/public/WebNonCopyable.h: Copied from Source/WebKit/chromium/public/platform/WebNonCopyable.h.
128         (WebKit):
129         (WebNonCopyable):
130         (WebKit::WebNonCopyable::WebNonCopyable):
131         (WebKit::WebNonCopyable::~WebNonCopyable):
132
133 2012-02-23  James Robinson  <jamesr@chromium.org>
134
135         [chromium] Move Web*Layer* headers into Platform
136         https://bugs.webkit.org/show_bug.cgi?id=79425
137
138         Reviewed by Adam Barth.
139
140         This moves the Web*Layer* headers and their dependencies from WebKit/chromium/public/platform/ into
141         Platform/chromium/public.
142
143         * Platform.gypi:
144         * chromium/public/WebCanvas.h: Copied from Source/WebKit/chromium/public/platform/WebCanvas.h.
145         (WebKit):
146         * chromium/public/WebColor.h: Copied from Source/WebKit/chromium/public/platform/WebColor.h.
147         (WebKit):
148         * chromium/public/WebColorName.h: Copied from Source/WebKit/chromium/public/platform/WebColorName.h.
149         (WebKit):
150         * chromium/public/WebContentLayer.h: Copied from Source/WebKit/chromium/public/platform/WebContentLayer.h.
151         (WebKit):
152         (WebContentLayer):
153         (WebKit::WebContentLayer::WebContentLayer):
154         (WebKit::WebContentLayer::~WebContentLayer):
155         (WebKit::WebContentLayer::operator=):
156         * chromium/public/WebContentLayerClient.h: Copied from Source/WebKit/chromium/public/platform/WebContentLayerClient.h.
157         (WebKit):
158         (WebContentLayerClient):
159         (WebKit::WebContentLayerClient::~WebContentLayerClient):
160         * chromium/public/WebExternalTextureLayer.h: Copied from Source/WebKit/chromium/public/platform/WebExternalTextureLayer.h.
161         (WebKit):
162         (WebExternalTextureLayer):
163         (WebKit::WebExternalTextureLayer::WebExternalTextureLayer):
164         (WebKit::WebExternalTextureLayer::~WebExternalTextureLayer):
165         (WebKit::WebExternalTextureLayer::operator=):
166         * chromium/public/WebLayer.h: Copied from Source/WebKit/chromium/public/platform/WebLayer.h.
167         (WebKit):
168         (WebLayer):
169         (WebKit::WebLayer::WebLayer):
170         (WebKit::WebLayer::~WebLayer):
171         (WebKit::WebLayer::operator=):
172         (WebKit::WebLayer::isNull):
173         (WebKit::WebLayer::to):
174         (WebKit::WebLayer::toConst):
175         (WebKit::WebLayer::unwrap):
176         (WebKit::WebLayer::constUnwrap):
177         (WebKit::operator==):
178         (WebKit::operator!=):
179         * chromium/public/WebLayerTreeView.h: Copied from Source/WebKit/chromium/public/platform/WebLayerTreeView.h.
180         (WebCore):
181         (WebKit):
182         (WebLayerTreeView):
183         (WebKit::WebLayerTreeView::Settings::Settings):
184         (Settings):
185         (WebKit::WebLayerTreeView::WebLayerTreeView):
186         (WebKit::WebLayerTreeView::~WebLayerTreeView):
187         (WebKit::WebLayerTreeView::operator=):
188         (WebKit::operator==):
189         (WebKit::operator!=):
190         * chromium/public/WebLayerTreeViewClient.h: Copied from Source/WebKit/chromium/public/platform/WebLayerTreeViewClient.h.
191         (WebKit):
192         (WebLayerTreeViewClient):
193         (WebKit::WebLayerTreeViewClient::~WebLayerTreeViewClient):
194         * chromium/public/WebPrivatePtr.h: Copied from Source/WebKit/chromium/public/platform/WebPrivatePtr.h.
195         (WebKit):
196         (WebPrivatePtr):
197         (WebKit::WebPrivatePtr::WebPrivatePtr):
198         (WebKit::WebPrivatePtr::~WebPrivatePtr):
199         (WebKit::WebPrivatePtr::isNull):
200         (WebKit::WebPrivatePtr::reset):
201         (WebKit::WebPrivatePtr::operator=):
202         (WebKit::WebPrivatePtr::get):
203         (WebKit::WebPrivatePtr::operator->):
204         (WebKit::WebPrivatePtr::assign):
205         * chromium/public/WebSolidColorLayer.h: Copied from Source/WebKit/chromium/public/platform/WebSolidColorLayer.h.
206         (WebKit):
207         (WebSolidColorLayer):
208
209 2012-02-08  James Robinson  <jamesr@chromium.org>
210
211         r107042 caused compile breakages on chromium try bots
212         https://bugs.webkit.org/show_bug.cgi?id=78125
213
214         Reviewed by Adam Barth.
215
216         Replace the copy script with a copies GYP action since the MSVS generator tracks dependencies on a per-file
217         basis.
218
219         * Platform.gyp/Platform.gyp:
220         * Platform.gyp/copy_webcore_headers.py: Removed.
221
222 2012-02-07  James Robinson  <jamesr@chromium.org>
223
224         [chromium] Move geometry headers in Platform API to Platform directory
225         https://bugs.webkit.org/show_bug.cgi?id=78067
226
227         Reviewed by Adam Barth.
228
229         This moves several geometry-related headers in the chromium WebKit platform API to Platform/chromium/public.
230         These require a bit of extra work since when WEBKIT_IMPLEMENTATION is set they #include headers from
231         WebCore/platform such as IntPoint so that the implementations of several functions can be inlined. Since we do
232         not want to add anything in WebCore to the include path of projects that depend on the Platform API this poses a
233         bit of an issue. I've added an extra build step to copy the specific headers used into the
234         SHARED_INTERMEDIATE_DIR to preserve this inlining.
235         
236         Eventually we'll move the cross-platform code, including these headers, into somewhere under Platform/, but doing
237         that requires non-trivial modifications to every build system in WebKit.
238
239         * Platform.gyp/Platform.gyp:
240         * Platform.gyp/copy_webcore_headers.py: Added.
241         (CopyHeaders):
242         (Main):
243         * chromium/public/WebFloatPoint.h: Copied from Source/WebKit/chromium/public/platform/WebFloatPoint.h.
244         (WebKit):
245         (WebFloatPoint):
246         (WebKit::WebFloatPoint::WebFloatPoint):
247         (WebKit::WebFloatPoint::operator=):
248         (WebKit::WebFloatPoint::operator WebCore::FloatPoint):
249         (WebKit::operator==):
250         (WebKit::operator!=):
251         * chromium/public/WebFloatQuad.h: Copied from Source/WebKit/chromium/public/platform/WebFloatQuad.h.
252         (WebKit):
253         (WebFloatQuad):
254         (WebKit::WebFloatQuad::WebFloatQuad):
255         (WebKit::WebFloatQuad::operator=):
256         * chromium/public/WebFloatRect.h: Copied from Source/WebKit/chromium/public/platform/WebFloatRect.h.
257         (WebKit):
258         (WebFloatRect):
259         (WebKit::WebFloatRect::isEmpty):
260         (WebKit::WebFloatRect::WebFloatRect):
261         (WebKit::WebFloatRect::operator=):
262         (WebKit::WebFloatRect::operator WebCore::FloatRect):
263         (WebKit::operator==):
264         (WebKit::operator!=):
265         * chromium/public/WebPoint.h: Copied from Source/WebKit/chromium/public/platform/WebPoint.h.
266         (WebKit):
267         (WebPoint):
268         (WebKit::WebPoint::WebPoint):
269         (WebKit::WebPoint::operator=):
270         (WebKit::WebPoint::operator WebCore::IntPoint):
271         (WebKit::WebPoint::operator gfx::Point):
272         (WebKit::operator==):
273         (WebKit::operator!=):
274         * chromium/public/WebRect.h: Copied from Source/WebKit/chromium/public/platform/WebRect.h.
275         (WebKit):
276         (WebRect):
277         (WebKit::WebRect::isEmpty):
278         (WebKit::WebRect::WebRect):
279         (WebKit::WebRect::operator=):
280         (WebKit::WebRect::operator WebCore::IntRect):
281         (WebKit::WebRect::operator gfx::Rect):
282         (WebKit::operator==):
283         (WebKit::operator!=):
284         * chromium/public/WebSize.h: Copied from Source/WebKit/chromium/public/platform/WebSize.h.
285         (WebKit):
286         (WebSize):
287         (WebKit::WebSize::isEmpty):
288         (WebKit::WebSize::WebSize):
289         (WebKit::WebSize::operator=):
290         (WebKit::WebSize::operator WebCore::IntSize):
291         (WebKit::WebSize::operator gfx::Size):
292         (WebKit::operator==):
293         (WebKit::operator!=):
294
295 2012-01-19  Joi Sigurdsson  <joi@chromium.org>
296
297         Enable use of precompiled headers in Chromium port on Windows.
298
299         Bug 76381 - Use precompiled headers in Chromium port on Windows
300         https://bugs.webkit.org/show_bug.cgi?id=76381
301
302         Reviewed by Tony Chang.
303
304         * Platform.gyp/Platform.gyp: Include WinPrecompile.gypi.
305
306 2012-01-04  James Robinson  <jamesr@chromium.org>
307
308         [chromium] Compile fix, rename libplatform.a to libwebkit_platform.a to avoid collision with nacl
309
310         * Platform.gyp/Platform.gyp:
311
312 2012-01-04  James Robinson  <jamesr@chromium.org>
313
314         [chromium] Move WebMimeRegistry and dependencies to Source/Platform
315         https://bugs.webkit.org/show_bug.cgi?id=74583
316
317         Reviewed by Darin Fisher.
318
319         This creates a skeleton directory structure for the chromium WebKit platform API and moves WebMimeRegistry.h
320         along with its dependencies (WebString and WebCString) to their final location.
321
322         * Platform.gyp/Platform.gyp: Added.
323         * Platform.gypi: Added.
324         * chromium/platform/WebCString.h: Copied from Source/WebKit/chromium/public/platform/WebCString.h.
325         (WebKit::WebCString::~WebCString):
326         (WebKit::WebCString::WebCString):
327         (WebKit::WebCString::operator=):
328         (WebKit::WebCString::isEmpty):
329         (WebKit::WebCString::isNull):
330         (WebKit::WebCString::operator std::string):
331         (WebKit::WebCString::fromUTF16):
332         (WebKit::operator<):
333         * chromium/platform/WebCommon.h: Copied from Source/WebKit/chromium/public/platform/WebCommon.h.
334         * chromium/platform/WebMimeRegistry.h: Copied from Source/WebKit/chromium/public/platform/WebMimeRegistry.h.
335         (WebKit::WebMimeRegistry::~WebMimeRegistry):
336         * chromium/platform/WebString.h: Copied from Source/WebKit/chromium/public/platform/WebString.h.
337         (WebKit::WebString::~WebString):
338         (WebKit::WebString::WebString):
339         (WebKit::WebString::operator=):
340         (WebKit::WebString::isEmpty):
341         (WebKit::WebString::isNull):
342         (WebKit::WebString::operator string16):
343         (WebKit::WebString::operator NullableString16):
344         (WebKit::WebString::fromUTF8):
345         (WebKit::operator==):
346         (WebKit::operator!=):
347         * chromium/src/WebCString.cpp: Renamed from Source/WebKit/chromium/src/WebCString.cpp.
348         (WebKit::WebCString::compare):
349         (WebKit::WebCString::reset):
350         (WebKit::WebCString::assign):
351         (WebKit::WebCString::length):
352         (WebKit::WebCString::data):
353         (WebKit::WebCString::utf16):
354         (WebKit::WebCString::fromUTF16):
355         (WebKit::WebCString::WebCString):
356         (WebKit::WebCString::operator=):
357         (WebKit::WebCString::operator WTF::CString):
358         * chromium/src/WebString.cpp: Renamed from Source/WebKit/chromium/src/WebString.cpp.
359         (WebKit::WebString::reset):
360         (WebKit::WebString::assign):
361         (WebKit::WebString::length):
362         (WebKit::WebString::data):
363         (WebKit::WebString::utf8):
364         (WebKit::WebString::fromUTF8):
365         (WebKit::WebString::equals):
366         (WebKit::WebString::WebString):
367         (WebKit::WebString::operator=):
368         (WebKit::WebString::operator WTF::String):
369         (WebKit::WebString::operator WTF::AtomicString):
370
371 2011-11-02  Adam Barth  <abarth@webkit.org>
372
373         Add stubs for WTF and Platform
374         https://bugs.webkit.org/show_bug.cgi?id=71492
375
376         Reviewed by Eric Seidel.
377
378         This patch creates the Platform directory, which begins the process of
379         moving Platform out of WebCore.