OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple 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 21 matching lines...) Expand all Loading... |
32 #include "core/page/Page.h" | 32 #include "core/page/Page.h" |
33 #include "core/platform/graphics/GraphicsContext3D.h" | 33 #include "core/platform/graphics/GraphicsContext3D.h" |
34 #include "core/platform/graphics/ImageBuffer.h" | 34 #include "core/platform/graphics/ImageBuffer.h" |
35 #include "platform/Timer.h" | 35 #include "platform/Timer.h" |
36 | 36 |
37 #include "wtf/Float32Array.h" | 37 #include "wtf/Float32Array.h" |
38 #include "wtf/Int32Array.h" | 38 #include "wtf/Int32Array.h" |
39 #include "wtf/OwnPtr.h" | 39 #include "wtf/OwnPtr.h" |
40 #include "wtf/text/WTFString.h" | 40 #include "wtf/text/WTFString.h" |
41 | 41 |
42 namespace WebKit { class WebLayer; } | 42 namespace blink { class WebLayer; } |
43 | 43 |
44 namespace WebCore { | 44 namespace WebCore { |
45 | 45 |
46 class ANGLEInstancedArrays; | 46 class ANGLEInstancedArrays; |
47 class DrawingBuffer; | 47 class DrawingBuffer; |
48 class EXTFragDepth; | 48 class EXTFragDepth; |
49 class EXTTextureFilterAnisotropic; | 49 class EXTTextureFilterAnisotropic; |
50 class ExceptionState; | 50 class ExceptionState; |
51 class HTMLImageElement; | 51 class HTMLImageElement; |
52 class HTMLVideoElement; | 52 class HTMLVideoElement; |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 | 308 |
309 // A synthetic lost context that should attempt to recover automatically | 309 // A synthetic lost context that should attempt to recover automatically |
310 AutoRecoverSyntheticLostContext | 310 AutoRecoverSyntheticLostContext |
311 }; | 311 }; |
312 void forceLostContext(LostContextMode); | 312 void forceLostContext(LostContextMode); |
313 void forceRestoreContext(); | 313 void forceRestoreContext(); |
314 void loseContextImpl(LostContextMode); | 314 void loseContextImpl(LostContextMode); |
315 | 315 |
316 GraphicsContext3D* graphicsContext3D() const { return m_context.get(); } | 316 GraphicsContext3D* graphicsContext3D() const { return m_context.get(); } |
317 WebGLContextGroup* contextGroup() const { return m_contextGroup.get(); } | 317 WebGLContextGroup* contextGroup() const { return m_contextGroup.get(); } |
318 virtual WebKit::WebLayer* platformLayer() const; | 318 virtual blink::WebLayer* platformLayer() const; |
319 | 319 |
320 void reshape(int width, int height); | 320 void reshape(int width, int height); |
321 | 321 |
322 void markLayerComposited(); | 322 void markLayerComposited(); |
323 virtual void paintRenderingResultsToCanvas(); | 323 virtual void paintRenderingResultsToCanvas(); |
324 virtual PassRefPtr<ImageData> paintRenderingResultsToImageData(); | 324 virtual PassRefPtr<ImageData> paintRenderingResultsToImageData(); |
325 | 325 |
326 void removeSharedObject(WebGLSharedObject*); | 326 void removeSharedObject(WebGLSharedObject*); |
327 void removeContextObject(WebGLContextObject*); | 327 void removeContextObject(WebGLContextObject*); |
328 | 328 |
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
922 static void forciblyLoseOldestContext(const String& reason); | 922 static void forciblyLoseOldestContext(const String& reason); |
923 // Return the least recently used context's position in the active context v
ector. | 923 // Return the least recently used context's position in the active context v
ector. |
924 // If the vector is empty, return the maximum allowed active context number. | 924 // If the vector is empty, return the maximum allowed active context number. |
925 static size_t oldestContextIndex(); | 925 static size_t oldestContextIndex(); |
926 static IntSize oldestContextSize(); | 926 static IntSize oldestContextSize(); |
927 }; | 927 }; |
928 | 928 |
929 } // namespace WebCore | 929 } // namespace WebCore |
930 | 930 |
931 #endif | 931 #endif |
OLD | NEW |