Changeset 161699 in webkit
- Timestamp:
- Jan 10, 2014 4:53:54 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 38 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CMakeLists.txt
r161661 r161699 101 101 elseif (CMAKE_SYSTEM_NAME MATCHES "Windows") 102 102 set(WTF_OS_WINDOWS 1) 103 elseif (CMAKE_SYSTEM_NAME MATCHES "QNX")104 set(WTF_OS_QNX 1)105 set(WTF_OS_UNIX 1)106 103 else () 107 104 message(FATAL_ERROR "Unknown OS '${CMAKE_SYSTEM_NAME}'") -
trunk/ChangeLog
r161672 r161699 1 2014-01-10 Benjamin Poulain <bpoulain@apple.com> 2 3 Remove the BlackBerry port from trunk 4 https://bugs.webkit.org/show_bug.cgi?id=126715 5 6 Reviewed by Anders Carlsson. 7 8 * CMakeLists.txt: 9 * Source/cmake/OptionsCommon.cmake: 10 1 11 2014-01-10 Tamas Gergely <tgergely.u-szeged@partner.samsung.com> 2 12 -
trunk/Source/JavaScriptCore/ChangeLog
r161691 r161699 1 2014-01-10 Benjamin Poulain <bpoulain@apple.com> 2 3 Remove the BlackBerry port from trunk 4 https://bugs.webkit.org/show_bug.cgi?id=126715 5 6 Reviewed by Anders Carlsson. 7 8 * assembler/ARMAssembler.h: 9 (JSC::ARMAssembler::cacheFlush): 10 * assembler/ARMv7Assembler.h: 11 (JSC::ARMv7Assembler::replaceWithJump): 12 (JSC::ARMv7Assembler::maxJumpReplacementSize): 13 (JSC::ARMv7Assembler::cacheFlush): 14 * assembler/MacroAssemblerARMv7.h: 15 (JSC::MacroAssemblerARMv7::revertJumpReplacementToBranchPtrWithPatch): 16 * heap/MachineStackMarker.cpp: 17 (JSC::getPlatformThreadRegisters): 18 (JSC::otherThreadStackPointer): 19 (JSC::freePlatformThreadRegisters): 20 * jit/ExecutableAllocator.h: 21 1 22 2014-01-10 Joseph Pecoraro <pecoraro@apple.com> 2 23 -
trunk/Source/JavaScriptCore/assembler/ARMAssembler.h
r160648 r161699 1122 1122 #elif OS(WINCE) 1123 1123 CacheRangeFlush(code, size, CACHE_SYNC_ALL); 1124 #elif OS(QNX) && ENABLE(ASSEMBLER_WX_EXCLUSIVE)1125 UNUSED_PARAM(code);1126 UNUSED_PARAM(size);1127 #elif OS(QNX)1128 msync(code, size, MS_INVALIDATE_ICACHE);1129 1124 #else 1130 1125 #error "The cacheFlush support is missing on this platform." -
trunk/Source/JavaScriptCore/assembler/ARMv7Assembler.h
r160703 r161699 1348 1348 } 1349 1349 1350 #if OS(LINUX) || OS(QNX)1350 #if OS(LINUX) 1351 1351 static void revertJumpTo_movT3movtcmpT2(void* instructionStart, RegisterID left, RegisterID right, uintptr_t imm) 1352 1352 { … … 2269 2269 ASSERT(!(bitwise_cast<uintptr_t>(to) & 1)); 2270 2270 2271 #if OS(LINUX) || OS(QNX)2271 #if OS(LINUX) 2272 2272 if (canBeJumpT4(reinterpret_cast<uint16_t*>(instructionStart), to)) { 2273 2273 uint16_t* ptr = reinterpret_cast<uint16_t*>(instructionStart) + 2; … … 2288 2288 static ptrdiff_t maxJumpReplacementSize() 2289 2289 { 2290 #if OS(LINUX) || OS(QNX)2290 #if OS(LINUX) 2291 2291 return 10; 2292 2292 #else … … 2378 2378 #elif OS(WINCE) 2379 2379 CacheRangeFlush(code, size, CACHE_SYNC_ALL); 2380 #elif OS(QNX)2381 #if !ENABLE(ASSEMBLER_WX_EXCLUSIVE)2382 msync(code, size, MS_INVALIDATE_ICACHE);2383 #else2384 UNUSED_PARAM(code);2385 UNUSED_PARAM(size);2386 #endif2387 2380 #else 2388 2381 #error "The cacheFlush support is missing on this platform." -
trunk/Source/JavaScriptCore/assembler/MacroAssemblerARMv7.h
r160680 r161699 1785 1785 static void revertJumpReplacementToBranchPtrWithPatch(CodeLocationLabel instructionStart, RegisterID rd, void* initialValue) 1786 1786 { 1787 #if OS(LINUX) || OS(QNX)1787 #if OS(LINUX) 1788 1788 ARMv7Assembler::revertJumpTo_movT3movtcmpT2(instructionStart.dataLocation(), rd, dataTempRegister, reinterpret_cast<uintptr_t>(initialValue)); 1789 1789 #else -
trunk/Source/JavaScriptCore/heap/MachineStackMarker.cpp
r157474 r161699 59 59 #endif 60 60 61 #if OS(QNX)62 #include <fcntl.h>63 #include <sys/procfs.h>64 #include <stdio.h>65 #include <errno.h>66 #endif67 68 61 #if USE(PTHREADS) && !OS(WINDOWS) && !OS(DARWIN) 69 62 #include <signal.h> … … 312 305 #elif OS(WINDOWS) 313 306 typedef CONTEXT PlatformThreadRegisters; 314 #elif OS(QNX)315 typedef struct _debug_thread_info PlatformThreadRegisters;316 307 #elif USE(PTHREADS) 317 308 typedef pthread_attr_t PlatformThreadRegisters; … … 359 350 GetThreadContext(platformThread, ®s); 360 351 return sizeof(CONTEXT); 361 #elif OS(QNX)362 memset(®s, 0, sizeof(regs));363 regs.tid = platformThread;364 // FIXME: If we find this hurts performance, we can consider caching the fd and keeping it open.365 int fd = open("/proc/self/as", O_RDONLY);366 if (fd == -1) {367 LOG_ERROR("Unable to open /proc/self/as (errno: %d)", errno);368 CRASH();369 }370 int rc = devctl(fd, DCMD_PROC_TIDSTATUS, ®s, sizeof(regs), 0);371 if (rc != EOK) {372 LOG_ERROR("devctl(DCMD_PROC_TIDSTATUS) failed (error: %d)", rc);373 CRASH();374 }375 close(fd);376 return sizeof(struct _debug_thread_info);377 352 #elif USE(PTHREADS) 378 353 pthread_attr_init(®s); … … 439 414 #endif 440 415 441 #elif OS(QNX)442 return reinterpret_cast<void*>((uintptr_t) regs.sp);443 444 416 #elif USE(PTHREADS) 445 417 void* stackBase = 0; … … 456 428 static void freePlatformThreadRegisters(PlatformThreadRegisters& regs) 457 429 { 458 #if USE(PTHREADS) && !OS(WINDOWS) && !OS(DARWIN) && !OS(QNX)430 #if USE(PTHREADS) && !OS(WINDOWS) && !OS(DARWIN) 459 431 pthread_attr_destroy(®s); 460 432 #else -
trunk/Source/JavaScriptCore/jit/ExecutableAllocator.h
r157474 r161699 41 41 #endif 42 42 43 #if OS(IOS) || OS(QNX)43 #if OS(IOS) 44 44 #include <sys/mman.h> 45 45 #endif -
trunk/Source/WebCore/ChangeLog
r161698 r161699 1 2014-01-10 Benjamin Poulain <bpoulain@apple.com> 2 3 Remove the BlackBerry port from trunk 4 https://bugs.webkit.org/show_bug.cgi?id=126715 5 6 Reviewed by Anders Carlsson. 7 8 * html/canvas/WebGLRenderingContext.cpp: 9 (WebCore::WebGLRenderingContext::readPixels): 10 * platform/graphics/ImageBuffer.cpp: 11 * platform/graphics/ImageBufferData.h: 12 * platform/graphics/IntPoint.h: 13 * platform/graphics/IntRect.h: 14 * platform/graphics/IntSize.h: 15 * platform/graphics/MediaPlayer.cpp: 16 * platform/graphics/NativeImagePtr.h: 17 * platform/graphics/OpenGLESShims.h: 18 * platform/graphics/Path.cpp: 19 (WebCore::Path::addPathForRoundedRect): 20 * platform/graphics/Path.h: 21 * platform/graphics/PlatformLayer.h: 22 * platform/graphics/filters/CustomFilterValidatedProgram.cpp: 23 * platform/graphics/filters/CustomFilterValidatedProgram.h: 24 * platform/graphics/filters/FilterOperation.h: 25 * platform/graphics/gpu/DrawingBuffer.cpp: 26 * platform/graphics/opengl/Extensions3DOpenGLCommon.cpp: 27 * platform/graphics/opengl/Extensions3DOpenGLES.cpp: 28 (WebCore::Extensions3DOpenGLES::getGraphicsResetStatusARB): 29 * platform/graphics/opengl/Extensions3DOpenGLES.h: 30 * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp: 31 (WebCore::GraphicsContext3D::paintRenderingResultsToCanvas): 32 (WebCore::GraphicsContext3D::prepareTexture): 33 (WebCore::GraphicsContext3D::bindFramebuffer): 34 (WebCore::GraphicsContext3D::compileShader): 35 (WebCore::GraphicsContext3D::copyTexImage2D): 36 (WebCore::GraphicsContext3D::copyTexSubImage2D): 37 * platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp: 38 (WebCore::GraphicsContext3D::readPixels): 39 (WebCore::GraphicsContext3D::readPixelsAndConvertToBGRAIfNecessary): 40 (WebCore::GraphicsContext3D::reshapeFBOs): 41 * platform/network/NetworkStateNotifier.h: 42 * platform/network/ResourceHandle.h: 43 * platform/network/ResourceHandleInternal.h: 44 * platform/network/ResourceRequestBase.cpp: 45 1 46 2014-01-10 Simon Fraser <simon.fraser@apple.com> 2 47 -
trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp
r161688 r161699 3494 3494 } 3495 3495 3496 #if OS(DARWIN) || OS(QNX)3496 #if OS(DARWIN) 3497 3497 if (m_isRobustnessEXTSupported) // we haven't computed padding 3498 3498 m_context->computeImageSizeInBytes(format, type, width, height, m_packAlignment, &totalBytesRequired, &padding); 3499 3499 // FIXME: remove this section when GL driver bug on Mac AND the GLES driver bug 3500 // on QC & Imagination QNXis fixed, i.e., when alpha is off, readPixels should3500 // on QC is fixed, i.e., when alpha is off, readPixels should 3501 3501 // set alpha to 255 instead of 0. 3502 3502 if (!m_framebufferBinding && !m_context->getContextAttributes().alpha) { -
trunk/Source/WebCore/platform/graphics/ImageBuffer.cpp
r159791 r161699 99 99 } 100 100 101 #if USE(ACCELERATED_COMPOSITING) && !USE(CAIRO) && !PLATFORM(BLACKBERRY)101 #if USE(ACCELERATED_COMPOSITING) && !USE(CAIRO) 102 102 PlatformLayer* ImageBuffer::platformLayer() const 103 103 { -
trunk/Source/WebCore/platform/graphics/ImageBufferData.h
r156795 r161699 30 30 #elif USE(WINGDI) 31 31 #include "ImageBufferDataWince.h" 32 #elif PLATFORM(BLACKBERRY)33 #include "ImageBufferDataBlackBerry.h"34 32 #endif -
trunk/Source/WebCore/platform/graphics/IntPoint.h
r161589 r161699 50 50 #elif PLATFORM(GTK) 51 51 typedef struct _GdkPoint GdkPoint; 52 #elif PLATFORM(BLACKBERRY)53 namespace BlackBerry {54 namespace Platform {55 class IntPoint;56 }57 }58 52 #elif PLATFORM(EFL) 59 53 typedef struct _Evas_Point Evas_Point; … … 129 123 IntPoint(const GdkPoint&); 130 124 operator GdkPoint() const; 131 #elif PLATFORM(BLACKBERRY)132 IntPoint(const BlackBerry::Platform::IntPoint&);133 operator BlackBerry::Platform::IntPoint() const;134 125 #elif PLATFORM(EFL) 135 126 explicit IntPoint(const Evas_Point&); -
trunk/Source/WebCore/platform/graphics/IntRect.h
r161589 r161699 56 56 #elif PLATFORM(EFL) 57 57 typedef struct _Eina_Rectangle Eina_Rectangle; 58 #elif PLATFORM(BLACKBERRY)59 namespace BlackBerry {60 namespace Platform {61 class IntRect;62 }63 }64 58 #endif 65 59 … … 205 199 #endif // !PLATFORM(IOS) 206 200 207 #if PLATFORM(BLACKBERRY)208 IntRect(const BlackBerry::Platform::IntRect&);209 operator BlackBerry::Platform::IntRect() const;210 #endif211 212 201 void dump(PrintStream& out) const; 213 202 -
trunk/Source/WebCore/platform/graphics/IntSize.h
r161589 r161699 49 49 #if PLATFORM(WIN) 50 50 typedef struct tagSIZE SIZE; 51 #elif PLATFORM(BLACKBERRY)52 namespace BlackBerry {53 namespace Platform {54 class IntSize;55 }56 }57 51 #endif 58 52 … … 149 143 #endif 150 144 151 #if PLATFORM(BLACKBERRY)152 IntSize(const BlackBerry::Platform::IntSize&);153 operator BlackBerry::Platform::IntSize() const;154 #endif155 156 145 void dump(PrintStream& out) const; 157 146 -
trunk/Source/WebCore/platform/graphics/MediaPlayer.cpp
r161589 r161699 73 73 #if USE(AVFOUNDATION) 74 74 #include "MediaPlayerPrivateAVFoundationCF.h" 75 #endif 76 #elif PLATFORM(BLACKBERRY) 77 #include "MediaPlayerPrivateBlackBerry.h" 78 #define PlatformMediaEngineClassName MediaPlayerPrivate 75 #endif // USE(AVFOUNDATION) 79 76 #endif 80 77 -
trunk/Source/WebCore/platform/graphics/NativeImagePtr.h
r156795 r161699 35 35 #elif USE(WINGDI) 36 36 #include "SharedBitmap.h" 37 #elif PLATFORM(BLACKBERRY)38 namespace BlackBerry {39 namespace Platform {40 namespace Graphics {41 class TiledImage;42 }43 }44 }45 37 #endif 46 38 … … 56 48 #elif USE(WINGDI) 57 49 typedef RefPtr<SharedBitmap> NativeImagePtr; 58 #elif PLATFORM(BLACKBERRY)59 typedef BlackBerry::Platform::Graphics::TiledImage* NativeImagePtr;60 50 #endif 61 51 -
trunk/Source/WebCore/platform/graphics/OpenGLESShims.h
r158351 r161699 27 27 #define OpenGLESShims_h 28 28 29 #if PLATFORM( BLACKBERRY) || PLATFORM(GTK) || PLATFORM(EFL) || PLATFORM(WIN) || PLATFORM(NIX)29 #if PLATFORM(GTK) || PLATFORM(EFL) || PLATFORM(WIN) || PLATFORM(NIX) 30 30 #define glBindFramebufferEXT glBindFramebuffer 31 31 #define glFramebufferTexture2DEXT glFramebufferTexture2D … … 54 54 #define GL_DRAW_FRAMEBUFFER_EXT 0x8CA9 55 55 #define FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT 0x9134 56 #endif // PLATFORM(BLACKBERRY)56 #endif 57 57 58 58 #endif // OpenGLESShims_h -
trunk/Source/WebCore/platform/graphics/Path.cpp
r156795 r161699 145 145 { 146 146 if (strategy == PreferNativeRoundedRect) { 147 #if USE(CG) || PLATFORM(BLACKBERRY)147 #if USE(CG) 148 148 platformAddPathForRoundedRect(rect, topLeftRadius, topRightRadius, bottomLeftRadius, bottomRightRadius); 149 149 return; -
trunk/Source/WebCore/platform/graphics/Path.h
r156795 r161699 45 45 } 46 46 typedef WebCore::PlatformPath PlatformPath; 47 #elif PLATFORM(BLACKBERRY)48 namespace BlackBerry { namespace Platform { namespace Graphics {49 class Path;50 } } }51 typedef BlackBerry::Platform::Graphics::Path PlatformPath;52 47 #else 53 48 typedef void PlatformPath; … … 147 142 void addBeziersForRoundedRect(const FloatRect&, const FloatSize& topLeftRadius, const FloatSize& topRightRadius, const FloatSize& bottomLeftRadius, const FloatSize& bottomRightRadius); 148 143 149 #if USE(CG) || PLATFORM(BLACKBERRY)144 #if USE(CG) 150 145 void platformAddPathForRoundedRect(const FloatRect&, const FloatSize& topLeftRadius, const FloatSize& topRightRadius, const FloatSize& bottomLeftRadius, const FloatSize& bottomRightRadius); 151 #endif152 153 #if PLATFORM(BLACKBERRY)154 Path(const PlatformPath&);155 146 #endif 156 147 -
trunk/Source/WebCore/platform/graphics/PlatformLayer.h
r157884 r161699 52 52 typedef TextureMapperPlatformLayer PlatformLayer; 53 53 }; 54 #endif 55 #elif PLATFORM(BLACKBERRY) 56 namespace WebCore { 57 class LayerWebKitThread; 58 typedef LayerWebKitThread PlatformLayer; 59 } 54 #endif // USE(TEXTURE_MAPPER) 60 55 #else 61 56 typedef void* PlatformLayer; -
trunk/Source/WebCore/platform/graphics/filters/CustomFilterValidatedProgram.cpp
r148518 r161699 605 605 } 606 606 607 #if ! PLATFORM(BLACKBERRY) && !USE(TEXTURE_MAPPER)607 #if !USE(TEXTURE_MAPPER) 608 608 void CustomFilterValidatedProgram::platformInit() 609 609 { -
trunk/Source/WebCore/platform/graphics/filters/CustomFilterValidatedProgram.h
r148518 r161699 38 38 #include <wtf/RefPtr.h> 39 39 #include <wtf/text/WTFString.h> 40 41 // PlatformCompiledProgram defines a type that is compatible with the framework used to implement accelerated compositing on a particular platform.42 #if PLATFORM(BLACKBERRY)43 namespace WebCore {44 class LayerCompiledProgram;45 }46 typedef WebCore::LayerCompiledProgram PlatformCompiledProgram;47 #endif48 40 49 41 namespace WebCore { … … 90 82 } 91 83 92 #if PLATFORM(BLACKBERRY) ||USE(TEXTURE_MAPPER)84 #if USE(TEXTURE_MAPPER) 93 85 PlatformCompiledProgram* platformCompiledProgram(); 94 86 #endif … … 118 110 119 111 RefPtr<CustomFilterCompiledProgram> m_compiledProgram; 120 #if PLATFORM(BLACKBERRY) ||USE(TEXTURE_MAPPER)112 #if USE(TEXTURE_MAPPER) 121 113 PlatformCompiledProgram* m_platformCompiledProgram; 122 114 #endif -
trunk/Source/WebCore/platform/graphics/filters/FilterOperation.h
r160973 r161699 38 38 #include <wtf/text/WTFString.h> 39 39 40 #if PLATFORM(BLACKBERRY)41 #include <wtf/ThreadSafeRefCounted.h>42 #endif43 44 40 // Annoyingly, wingdi.h #defines this. 45 41 #ifdef PASSTHROUGH … … 55 51 #endif 56 52 57 #if PLATFORM(BLACKBERRY)58 class FilterOperation : public ThreadSafeRefCounted<FilterOperation> {59 #else60 53 class FilterOperation : public RefCounted<FilterOperation> { 61 #endif62 54 public: 63 55 enum OperationType { -
trunk/Source/WebCore/platform/graphics/gpu/DrawingBuffer.cpp
r156795 r161699 90 90 // When this limit is set, DrawingBuffer::create() and DrawingBuffer::reset() calls that would 91 91 // exceed the global cap will instead clear the buffer. 92 #if !PLATFORM(BLACKBERRY)93 92 static int s_maximumResourceUsePixels = 0; 94 #endif95 93 static int s_currentResourceUsePixels = 0; 96 94 static const float s_resourceAdjustedRatio = 0.5; -
trunk/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLCommon.cpp
r161589 r161699 33 33 #include "GraphicsContext3D.h" 34 34 35 #if PLATFORM(BLACKBERRY)36 #include <BlackBerryPlatformLog.h>37 #endif38 39 35 #if PLATFORM(IOS) 40 36 #include <OpenGLES/ES2/glext.h> -
trunk/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.cpp
r161645 r161699 34 34 #include <wtf/Vector.h> 35 35 36 #if PLATFORM(BLACKBERRY)37 #include <BlackBerryPlatformLog.h>38 #endif39 40 36 namespace WebCore { 41 37 … … 177 173 int reasonForReset = m_glGetGraphicsResetStatusEXT(); 178 174 if (reasonForReset != GL_NO_ERROR) { 179 #if PLATFORM(BLACKBERRY)180 // We cannot yet recreate our compositing thread, so just quit.181 BlackBerry::Platform::logAlways(BlackBerry::Platform::LogLevelCritical, "Robust OpenGL context has been reset. Aborting.");182 CRASH();183 #endif184 175 ASSERT(m_contextLostCallback); 185 176 if (m_contextLostCallback) -
trunk/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.h
r160458 r161699 32 32 #include <GLES2/gl2.h> 33 33 #include <GLES2/gl2ext.h> 34 35 #if OS(QNX)36 // See https://bugs.webkit.org/show_bug.cgi?id=91030.37 // Newer Khorons headers do define these with a PROC suffix, but older headers don't.38 #define PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMG PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMGPROC39 #define PFNGLRENDERBUFFERSTORAGEMULTISAMPLEIMG PFNGLRENDERBUFFERSTORAGEMULTISAMPLEIMGPROC40 #endif41 34 42 35 #ifndef GL_EXT_robustness -
trunk/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
r161605 r161699 73 73 #endif 74 74 75 #if PLATFORM(BLACKBERRY)76 #include <BlackBerryPlatformLog.h>77 #endif78 79 75 namespace WebCore { 80 76 … … 165 161 } 166 162 167 #if PLATFORM(BLACKBERRY) ||USE(CG)163 #if USE(CG) 168 164 paintToCanvas(pixels.get(), m_currentWidth, m_currentHeight, 169 165 imageBuffer->internalSize().width(), imageBuffer->internalSize().height(), imageBuffer->context()); … … 204 200 } 205 201 206 #if !PLATFORM(BLACKBERRY)207 202 void GraphicsContext3D::prepareTexture() 208 203 { … … 229 224 m_layerComposited = true; 230 225 } 231 #endif232 226 233 227 void GraphicsContext3D::readRenderingResults(unsigned char *pixels, int pixelsSize) … … 400 394 fbo = buffer; 401 395 else 402 #if PLATFORM(BLACKBERRY)403 fbo = m_fbo;404 #else405 396 fbo = (m_attrs.antialias ? m_multisampleFBO : m_fbo); 406 #endif407 397 if (fbo != m_state.boundFBO) { 408 398 ::glBindFramebufferEXT(target, fbo); … … 563 553 entry.isValid = false; 564 554 LOG(WebGL, "Error: shader translator produced a shader that OpenGL would not compile."); 565 #if PLATFORM(BLACKBERRY) && !defined(NDEBUG)566 BBLOG(BlackBerry::Platform::LogLevelWarn, "The shader validated, but didn't compile.\n");567 #endif568 555 } 569 556 … … 574 561 { 575 562 makeContextCurrent(); 576 #if !PLATFORM(BLACKBERRY)577 563 if (m_attrs.antialias && m_state.boundFBO == m_multisampleFBO) { 578 564 resolveMultisamplingIfNecessary(IntRect(x, y, width, height)); 579 565 ::glBindFramebufferEXT(GraphicsContext3D::FRAMEBUFFER, m_fbo); 580 566 } 581 #endif582 567 ::glCopyTexImage2D(target, level, internalformat, x, y, width, height, border); 583 #if !PLATFORM(BLACKBERRY)584 568 if (m_attrs.antialias && m_state.boundFBO == m_multisampleFBO) 585 569 ::glBindFramebufferEXT(GraphicsContext3D::FRAMEBUFFER, m_multisampleFBO); 586 #endif587 570 } 588 571 … … 590 573 { 591 574 makeContextCurrent(); 592 #if !PLATFORM(BLACKBERRY)593 575 if (m_attrs.antialias && m_state.boundFBO == m_multisampleFBO) { 594 576 resolveMultisamplingIfNecessary(IntRect(x, y, width, height)); 595 577 ::glBindFramebufferEXT(GraphicsContext3D::FRAMEBUFFER, m_fbo); 596 578 } 597 #endif598 579 ::glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height); 599 #if !PLATFORM(BLACKBERRY)600 580 if (m_attrs.antialias && m_state.boundFBO == m_multisampleFBO) 601 581 ::glBindFramebufferEXT(GraphicsContext3D::FRAMEBUFFER, m_multisampleFBO); 602 #endif603 582 } 604 583 -
trunk/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp
r160991 r161699 36 36 #include "IntRect.h" 37 37 #include "IntSize.h" 38 #if PLATFORM(BLACKBERRY)39 #include "LayerWebKitThread.h"40 #endif41 38 #include "NotImplemented.h" 42 39 … … 55 52 // all previous rendering calls should be done before reading pixels. 56 53 ::glFlush(); 57 #if PLATFORM(BLACKBERRY)58 if (m_isImaginationHardware && m_fbo == m_state.boundFBO) {59 // FIXME: This workaround should always be used until the60 // driver alignment bug is fixed, even when we aren't61 // drawing to the canvas.62 readPixelsIMG(x, y, width, height, format, type, data);63 } else64 ::glReadPixels(x, y, width, height, format, type, data);65 #else66 54 if (m_attrs.antialias && m_state.boundFBO == m_multisampleFBO) { 67 55 resolveMultisamplingIfNecessary(IntRect(x, y, width, height)); … … 74 62 if (m_attrs.antialias && m_state.boundFBO == m_multisampleFBO) 75 63 ::glBindFramebuffer(GL_FRAMEBUFFER, m_multisampleFBO); 76 #endif77 64 } 78 65 79 66 void GraphicsContext3D::readPixelsAndConvertToBGRAIfNecessary(int x, int y, int width, int height, unsigned char* pixels) 80 67 { 81 #if PLATFORM(BLACKBERRY)82 if (m_isImaginationHardware && m_fbo == m_state.boundFBO) {83 // FIXME: This workaround should always be used until the84 // driver alignment bug is fixed, even when we aren't85 // drawing to the canvas.86 readPixelsIMG(x, y, width, height, GL_RGBA, GL_UNSIGNED_BYTE, pixels);87 } else88 ::glReadPixels(x, y, width, height, GL_RGBA, GL_UNSIGNED_BYTE, pixels);89 #else90 68 ::glReadPixels(x, y, width, height, GL_RGBA, GL_UNSIGNED_BYTE, pixels); 91 #endif92 69 int totalBytes = width * height * 4; 93 70 if (isGLES2Compliant()) { … … 97 74 } 98 75 99 #if !PLATFORM(BLACKBERRY)100 // The BlackBerry port uses a special implementation of reshapeFBOs. See GraphicsContext3DBlackBerry.cpp101 76 bool GraphicsContext3D::reshapeFBOs(const IntSize& size) 102 77 { … … 170 145 return mustRestoreFBO; 171 146 } 172 #endif173 147 174 148 void GraphicsContext3D::resolveMultisamplingIfNecessary(const IntRect& rect) -
trunk/Source/WebCore/platform/network/NetworkStateNotifier.h
r161589 r161699 68 68 #endif 69 69 70 #if PLATFORM(BLACKBERRY)71 void networkStateChange(bool online);72 #endif73 74 70 private: 75 71 bool m_isOnLine; … … 105 101 }; 106 102 107 #if !PLATFORM(MAC) && !PLATFORM(WIN) && !PLATFORM( BLACKBERRY) && !PLATFORM(EFL)103 #if !PLATFORM(MAC) && !PLATFORM(WIN) && !PLATFORM(EFL) 108 104 109 105 inline NetworkStateNotifier::NetworkStateNotifier() -
trunk/Source/WebCore/platform/network/ResourceHandle.h
r160467 r161699 171 171 #endif 172 172 173 #if USE(CURL) || USE(SOUP) || PLATFORM(BLACKBERRY)173 #if USE(CURL) || USE(SOUP) 174 174 ResourceHandleInternal* getInternal() { return d.get(); } 175 175 #endif … … 224 224 void setDefersLoading(bool); 225 225 226 #if PLATFORM(BLACKBERRY)227 void pauseLoad(bool); // FIXME: How is this different from setDefersLoading()?228 #endif229 230 226 void didChangePriority(ResourceLoadPriority); 231 227 -
trunk/Source/WebCore/platform/network/ResourceHandleInternal.h
r160352 r161699 218 218 #endif 219 219 AuthenticationChallenge m_currentWebChallenge; 220 #if PLATFORM(BLACKBERRY)221 // We need to store the credentials for host and proxy separately for the platform222 // networking layer. One of these will always be equal to m_currentWebChallenge.223 AuthenticationChallenge m_hostWebChallenge;224 AuthenticationChallenge m_proxyWebChallenge;225 #endif226 227 220 ResourceHandle::FailureType m_scheduledFailureType; 228 221 Timer<ResourceHandle> m_failureTimer; -
trunk/Source/WebCore/platform/network/ResourceRequestBase.cpp
r161589 r161699 524 524 } 525 525 526 #if !PLATFORM(MAC) && !USE(CFNETWORK) && !USE(SOUP) && !PLATFORM(BLACKBERRY)526 #if !PLATFORM(MAC) && !USE(CFNETWORK) && !USE(SOUP) 527 527 unsigned initializeMaximumHTTPConnectionCountPerHost() 528 528 { -
trunk/Source/cmake/OptionsCommon.cmake
r161325 r161699 17 17 get_filename_component(CODE_GENERATOR_PREPROCESSOR_EXECUTABLE ${CMAKE_CXX_COMPILER} NAME) 18 18 set(CODE_GENERATOR_PREPROCESSOR "${CODE_GENERATOR_PREPROCESSOR_EXECUTABLE} /nologo /EP") 19 set(CODE_GENERATOR_PREPROCESSOR_WITH_LINEMARKERS "${CODE_GENERATOR_PREPROCESSOR}")20 elseif (CMAKE_SYSTEM_NAME MATCHES QNX)21 set(CODE_GENERATOR_PREPROCESSOR "${CMAKE_CXX_COMPILER} -E -Wp,-P -x c++")22 19 set(CODE_GENERATOR_PREPROCESSOR_WITH_LINEMARKERS "${CODE_GENERATOR_PREPROCESSOR}") 23 20 else () -
trunk/Tools/ChangeLog
r161685 r161699 1 2014-01-10 Benjamin Poulain <bpoulain@apple.com> 2 3 Remove the BlackBerry port from trunk 4 https://bugs.webkit.org/show_bug.cgi?id=126715 5 6 Reviewed by Anders Carlsson. 7 8 * DumpRenderTree/DumpRenderTree.h: 9 * DumpRenderTree/PixelDumpSupport.cpp: 10 1 11 2014-01-10 Daniel Bates <dabates@apple.com> 2 12 -
trunk/Tools/DumpRenderTree/DumpRenderTree.h
r148980 r161699 43 43 #elif PLATFORM(EFL) 44 44 #include "DumpRenderTreeEfl.h" 45 #elif PLATFORM(BLACKBERRY)46 #include "DumpRenderTreeBlackBerry.h"47 45 #endif 48 46 -
trunk/Tools/DumpRenderTree/PixelDumpSupport.cpp
r125516 r161699 42 42 #elif USE(CAIRO) 43 43 #include "PixelDumpSupportCairo.h" 44 #elif PLATFORM(BLACKBERRY)45 #include "PixelDumpSupportBlackBerry.h"46 44 #endif 47 45
Note: See TracChangeset
for help on using the changeset viewer.