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