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