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