Changeset 131335 in webkit
- Timestamp:
- Oct 15, 2012, 12:35:20 PM (13 years ago)
- Location:
- trunk/Source
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r131333 r131335 1 2012-10-15 Jonathan Dong <jonathan.dong@torchmobile.com.cn> 2 3 [BlackBerry] replace BlackBerry::Platform::log() with BBLOG() 4 https://bugs.webkit.org/show_bug.cgi?id=99302 5 6 Reviewed by Rob Buis. 7 8 RIM PR: 210884 9 The marco BBLOG() is defined as a no-op in release mode which will 10 save a function call in the release build. 11 Internally reviewed by Charles Wei. 12 13 No new tests since there's no functional change. 14 15 * platform/blackberry/PlatformKeyboardEventBlackBerry.cpp: 16 (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent): 17 * platform/graphics/blackberry/GraphicsContext3DBlackBerry.cpp: 18 (WebCore::GraphicsContext3D::logFrameBufferStatus): 19 * platform/graphics/blackberry/LayerCompositingThread.cpp: 20 (WebCore::LayerCompositingThread::getTransformedHolePunchRect): 21 * platform/graphics/blackberry/VideoLayerWebKitThread.cpp: 22 (WebCore::VideoLayerWebKitThread::setHolePunchRect): 23 (WebCore::VideoLayerWebKitThread::boundsChanged): 24 * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp: 25 (WebCore::GraphicsContext3D::compileShader): 26 1 27 2012-10-15 Christophe Dumez <christophe.dumez@intel.com> 2 28 -
trunk/Source/WebCore/platform/blackberry/PlatformKeyboardEventBlackBerry.cpp
r127613 r131335 453 453 m_modifiers |= ShiftKey; // BackTab should be treated as Shift + Tab. 454 454 455 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelInfo, "Keyboard event received text=%lc, keyIdentifier=%s, windowsVirtualKeyCode=%d", event.character(), m_keyIdentifier.latin1().data(), m_windowsVirtualKeyCode);455 BBLOG(BlackBerry::Platform::LogLevelInfo, "Keyboard event received text=%lc, keyIdentifier=%s, windowsVirtualKeyCode=%d", event.character(), m_keyIdentifier.latin1().data(), m_windowsVirtualKeyCode); 456 456 } 457 457 -
trunk/Source/WebCore/platform/graphics/blackberry/GraphicsContext3DBlackBerry.cpp
r130801 r131335 235 235 void GraphicsContext3D::logFrameBufferStatus(int line) 236 236 { 237 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelInfo, "Checking FrameBuffer status at line %d: ", line);237 BBLOG(BlackBerry::Platform::LogLevelInfo, "Checking FrameBuffer status at line %d: ", line); 238 238 switch (glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT)) { 239 239 case GL_FRAMEBUFFER_COMPLETE: 240 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelInfo, "COMPLETE | ");240 BBLOG(BlackBerry::Platform::LogLevelInfo, "COMPLETE | "); 241 241 break; 242 242 case GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 243 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelInfo, "INCOMPLETE ATTACHMENT | ");243 BBLOG(BlackBerry::Platform::LogLevelInfo, "INCOMPLETE ATTACHMENT | "); 244 244 break; 245 245 case GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 246 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelInfo, "MISSING ATTACHMENT | ");246 BBLOG(BlackBerry::Platform::LogLevelInfo, "MISSING ATTACHMENT | "); 247 247 break; 248 248 case GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 249 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelInfo, "INCOMPLETE DIMENSIONS | ");249 BBLOG(BlackBerry::Platform::LogLevelInfo, "INCOMPLETE DIMENSIONS | "); 250 250 break; 251 251 case GL_FRAMEBUFFER_UNSUPPORTED: 252 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelInfo, "UNSUPPORTED | ");252 BBLOG(BlackBerry::Platform::LogLevelInfo, "UNSUPPORTED | "); 253 253 break; 254 254 case FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT: 255 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelInfo, "INCOMPLETE MULTISAMPLE | ");255 BBLOG(BlackBerry::Platform::LogLevelInfo, "INCOMPLETE MULTISAMPLE | "); 256 256 break; 257 257 } … … 259 259 switch (glGetError()) { 260 260 case GL_NO_ERROR: 261 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelInfo, "NO ERROR");261 BBLOG(BlackBerry::Platform::LogLevelInfo, "NO ERROR"); 262 262 break; 263 263 case GL_INVALID_ENUM: 264 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelInfo, "INVALID ENUM");264 BBLOG(BlackBerry::Platform::LogLevelInfo, "INVALID ENUM"); 265 265 break; 266 266 case GL_INVALID_VALUE: 267 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelInfo, "INVALID VALUE");267 BBLOG(BlackBerry::Platform::LogLevelInfo, "INVALID VALUE"); 268 268 break; 269 269 case GL_INVALID_OPERATION: 270 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelInfo, "INVALID OPERATION");270 BBLOG(BlackBerry::Platform::LogLevelInfo, "INVALID OPERATION"); 271 271 break; 272 272 case GL_OUT_OF_MEMORY: 273 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelInfo, "OUT OF MEMORY");274 break; 275 } 276 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelInfo, "\n");273 BBLOG(BlackBerry::Platform::LogLevelInfo, "OUT OF MEMORY"); 274 break; 275 } 276 BBLOG(BlackBerry::Platform::LogLevelInfo, "\n"); 277 277 } 278 278 -
trunk/Source/WebCore/platform/graphics/blackberry/LayerCompositingThread.cpp
r127502 r131335 198 198 199 199 #if DEBUG_VIDEO_CLIPPING 200 201 BlackBerry::Platform::log(BlackBerry::Platform::LogLevelInfo, "LayerCompositingThread::getTransformedHolePunchRect() - drawRect=(x=%d,y=%d,width=%d,height=%d) clipRect=(x=%d,y=%d,width=%d,height=%d) clippedRect=(x=%d,y=%d,width=%d,height=%d).",200 IntRect drawRectInWebKitDocumentCoordination = m_layerRenderer->toWebKitDocumentCoordinates(m_drawRect); 201 BBLOG(BlackBerry::Platform::LogLevelInfo, "LayerCompositingThread::getTransformedHolePunchRect() - drawRect=(x=%d,y=%d,width=%d,height=%d) clipRect=(x=%d,y=%d,width=%d,height=%d) clippedRect=(x=%d,y=%d,width=%d,height=%d).", 202 202 drawRectInWebKitDocumentCoordination.x(), drawRectInWebKitDocumentCoordination.y(), drawRectInWebKitDocumentCoordination.width(), drawRectInWebKitDocumentCoordination.height(), 203 203 m_holePunchClipRect.x(), m_holePunchClipRect.y(), m_holePunchClipRect.width(), m_holePunchClipRect.height(), -
trunk/Source/WebCore/platform/graphics/blackberry/VideoLayerWebKitThread.cpp
r109668 r131335 66 66 m_holePunchRect = rect; 67 67 #if DEBUG_VIDEO_CLIPPING 68 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelInfo, "VideoLayerWebKitThread m_holePunchRect=(x=%d,y=%d,width=%d,height=%d).", m_holePunchRect.x(), m_holePunchRect.y(), m_holePunchRect.width(), m_holePunchRect.height());68 BBLOG(BlackBerry::Platform::LogLevelInfo, "VideoLayerWebKitThread m_holePunchRect=(x=%d,y=%d,width=%d,height=%d).", m_holePunchRect.x(), m_holePunchRect.y(), m_holePunchRect.width(), m_holePunchRect.height()); 69 69 #endif 70 70 setNeedsCommit(); … … 96 96 97 97 #if DEBUG_VIDEO_CLIPPING 98 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelInfo, "VideoLayerWebKitThread m_holePunchClipRect=(x=%d,y=%d,width=%d,height=%d).", m_holePunchClipRect.x(), m_holePunchClipRect.y(), m_holePunchClipRect.width(), m_holePunchClipRect.height());98 BBLOG(BlackBerry::Platform::LogLevelInfo, "VideoLayerWebKitThread m_holePunchClipRect=(x=%d,y=%d,width=%d,height=%d).", m_holePunchClipRect.x(), m_holePunchClipRect.y(), m_holePunchClipRect.width(), m_holePunchClipRect.height()); 99 99 #endif 100 100 } -
trunk/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
r130985 r131335 480 480 #if PLATFORM(BLACKBERRY) 481 481 if (GLCompileSuccess != GL_TRUE) 482 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelWarn, "The shader validated, but didn't compile.\n");482 BBLOG(BlackBerry::Platform::LogLevelWarn, "The shader validated, but didn't compile.\n"); 483 483 #endif 484 484 } -
trunk/Source/WebKit/blackberry/Api/BackingStore.cpp
r131257 r131335 141 141 bestDivisor = divisor; // Found a perfect fit! 142 142 #if DEBUG_TILEMATRIX 143 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelCritical, "bestDivisor found perfect size isPerfectWidth=%s isPerfectHeight=%s",143 BBLOG(BlackBerry::Platform::LogLevelCritical, "bestDivisor found perfect size isPerfectWidth=%s isPerfectHeight=%s", 144 144 isPerfectWidth ? "true" : "false", 145 145 isPerfectHeight ? "true" : "false"); … … 282 282 { 283 283 if (m_suspendScreenUpdates) { 284 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelInfo,284 BBLOG(BlackBerry::Platform::LogLevelInfo, 285 285 "Screen and backingstore already suspended, increasing suspend counter."); 286 286 } … … 316 316 317 317 if (m_suspendScreenUpdates >= 2 && m_suspendBackingStoreUpdates >= 2) { // we're still suspended 318 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelInfo,318 BBLOG(BlackBerry::Platform::LogLevelInfo, 319 319 "Screen and backingstore still suspended, decreasing suspend counter."); 320 320 --m_suspendBackingStoreUpdates; … … 395 395 396 396 #if DEBUG_WEBCORE_REQUESTS 397 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelCritical,397 BBLOG(BlackBerry::Platform::LogLevelCritical, 398 398 "BackingStorePrivate::repaint rect=%d,%d %dx%d contentChanged=%s immediate=%s", 399 399 rect.x(), rect.y(), rect.width(), rect.height(), … … 442 442 // Stop the time measurement. 443 443 double elapsed = WTF::currentTime() - time; 444 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelCritical, "BackingStorePrivate::slowScroll elapsed=%f", elapsed);444 BBLOG(BlackBerry::Platform::LogLevelCritical, "BackingStorePrivate::slowScroll elapsed=%f", elapsed); 445 445 #endif 446 446 } … … 475 475 // Stop the time measurement. 476 476 double elapsed = WTF::currentTime() - time; 477 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelCritical, "BackingStorePrivate::scroll dx=%d, dy=%d elapsed=%f", delta.width(), delta.height(), elapsed);477 BBLOG(BlackBerry::Platform::LogLevelCritical, "BackingStorePrivate::scroll dx=%d, dy=%d elapsed=%f", delta.width(), delta.height(), elapsed); 478 478 #endif 479 479 } … … 706 706 707 707 #if DEBUG_TILEMATRIX 708 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelCritical, "BackingStorePrivate::setBackingStoreRect changed from (%d,%d %dx%d) to (%d,%d %dx%d)",708 BBLOG(BlackBerry::Platform::LogLevelCritical, "BackingStorePrivate::setBackingStoreRect changed from (%d,%d %dx%d) to (%d,%d %dx%d)", 709 709 currentBackingStoreRect.x(), 710 710 currentBackingStoreRect.y(), … … 760 760 #if DEBUG_BACKINGSTORE 761 761 Platform::IntRect extents = tileNotRenderedRegion.extents(); 762 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelCritical, "BackingStorePrivate::setBackingStoreRect did clear tile %d,%d %dx%d",762 BBLOG(BlackBerry::Platform::LogLevelCritical, "BackingStorePrivate::setBackingStoreRect did clear tile %d,%d %dx%d", 763 763 extents.x(), extents.y(), extents.width(), extents.height()); 764 764 #endif … … 970 970 971 971 #if DEBUG_TILEMATRIX 972 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelCritical, "BackingStorePrivate::scrollBackingStore divisor %dx%d",972 BBLOG(BlackBerry::Platform::LogLevelCritical, "BackingStorePrivate::scrollBackingStore divisor %dx%d", 973 973 divisor.first, 974 974 divisor.second); … … 1042 1042 1043 1043 #if DEBUG_BACKINGSTORE 1044 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelCritical,1044 BBLOG(BlackBerry::Platform::LogLevelCritical, 1045 1045 "BackingStorePrivate::render rect=(%d,%d %dx%d), m_suspendBackingStoreUpdates = %s", 1046 1046 rect.x(), rect.y(), rect.width(), rect.height(), … … 1514 1514 if (blitCheckered && !lastCheckeredTime) { 1515 1515 lastCheckeredTime = WTF::currentTime(); 1516 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelCritical,1516 BBLOG(BlackBerry::Platform::LogLevelCritical, 1517 1517 "Blitting checkered pattern at %f\n", lastCheckeredTime); 1518 1518 } else if (blitCheckered && lastCheckeredTime) { 1519 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelCritical,1519 BBLOG(BlackBerry::Platform::LogLevelCritical, 1520 1520 "Blitting checkered pattern at %f\n", WTF::currentTime()); 1521 1521 } else if (!blitCheckered && lastCheckeredTime) { 1522 1522 double time = WTF::currentTime(); 1523 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelCritical,1523 BBLOG(BlackBerry::Platform::LogLevelCritical, 1524 1524 "Blitting over checkered pattern at %f took %f\n", time, time - lastCheckeredTime); 1525 1525 lastCheckeredTime = 0; … … 1800 1800 #if DEBUG_BACKINGSTORE 1801 1801 Platform::IntRect extents = tileNotRenderedRegion.extents(); 1802 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelCritical,1802 BBLOG(BlackBerry::Platform::LogLevelCritical, 1803 1803 "BackingStorePrivate::updateTilesForScroll did clear tile %d,%d %dx%d", 1804 1804 extents.x(), extents.y(), extents.width(), extents.height()); … … 2193 2193 2194 2194 #if DEBUG_BACKINGSTORE 2195 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelCritical,2195 BBLOG(BlackBerry::Platform::LogLevelCritical, 2196 2196 "BackingStorePrivate::renderContents tileBuffer=0x%x surfaceOffset=(%d,%d) contentsRect=(%d,%d %dx%d)", 2197 2197 tileBuffer, surfaceOffset.x(), surfaceOffset.y(), … … 2329 2329 ASSERT(srcBuffer); 2330 2330 if (!dstBuffer) 2331 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelWarn, "Empty window buffer, couldn't blitToWindow");2331 BBLOG(BlackBerry::Platform::LogLevelWarn, "Empty window buffer, couldn't blitToWindow"); 2332 2332 2333 2333 BlackBerry::Platform::Graphics::BlendMode blendMode = blend … … 2358 2358 ASSERT(dstBuffer); 2359 2359 if (!dstBuffer) 2360 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelWarn, "Empty window buffer, couldn't fillWindow");2360 BBLOG(BlackBerry::Platform::LogLevelWarn, "Empty window buffer, couldn't fillWindow"); 2361 2361 2362 2362 BlackBerry::Platform::Graphics::fillBuffer(dstBuffer, pattern, dstRect, contentsOrigin, contentsScale); … … 2388 2388 2389 2389 #if DEBUG_BACKINGSTORE 2390 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelCritical, "BackingStorePrivate::invalidateWindow dst = %s", dst.toString().c_str());2390 BBLOG(BlackBerry::Platform::LogLevelCritical, "BackingStorePrivate::invalidateWindow dst = %s", dst.toString().c_str()); 2391 2391 #endif 2392 2392 … … 2408 2408 2409 2409 #if DEBUG_BACKINGSTORE 2410 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelCritical, "BackingStorePrivate::invalidateWindow posting = %s", dstRect.toString().c_str());2410 BBLOG(BlackBerry::Platform::LogLevelCritical, "BackingStorePrivate::invalidateWindow posting = %s", dstRect.toString().c_str()); 2411 2411 #endif 2412 2412 … … 2443 2443 ASSERT(dstBuffer); 2444 2444 if (!dstBuffer) 2445 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelWarn, "Empty window buffer, couldn't clearWindow");2445 BBLOG(BlackBerry::Platform::LogLevelWarn, "Empty window buffer, couldn't clearWindow"); 2446 2446 2447 2447 windowFrontBufferState()->clearBlittedRegion(rect); -
trunk/Source/WebKit/blackberry/Api/WebPage.cpp
r131326 r131335 1064 1064 1065 1065 #if DEBUG_WEBPAGE_LOAD 1066 Platform::log(Platform::LogLevelInfo, "WebPagePrivate::setLoadState %d", state);1066 BBLOG(Platform::LogLevelInfo, "WebPagePrivate::setLoadState %d", state); 1067 1067 #endif 1068 1068 … … 1236 1236 #if DEBUG_WEBPAGE_LOAD 1237 1237 if (loadState() < Finished) 1238 Platform::log(Platform::LogLevelInfo, "WebPagePrivate::zoomAboutPoint scale %f anchor (%f, %f)", scale, anchor.x(), anchor.y());1238 BBLOG(Platform::LogLevelInfo, "WebPagePrivate::zoomAboutPoint scale %f anchor (%f, %f)", scale, anchor.x(), anchor.y()); 1239 1239 #endif 1240 1240 … … 1573 1573 1574 1574 #if DEBUG_WEBPAGE_LOAD 1575 Platform::log(Platform::LogLevelInfo, "WebPagePrivate::contentsSizeChanged %dx%d", contentsSize.width(), contentsSize.height());1575 BBLOG(Platform::LogLevelInfo, "WebPagePrivate::contentsSizeChanged %dx%d", contentsSize.width(), contentsSize.height()); 1576 1576 #endif 1577 1577 } … … 1644 1644 { 1645 1645 #if DEBUG_WEBPAGE_LOAD 1646 Platform::log(Platform::LogLevelInfo, "WebPagePrivate::zoomToInitialScaleOnLoad");1646 BBLOG(Platform::LogLevelInfo, "WebPagePrivate::zoomToInitialScaleOnLoad"); 1647 1647 #endif 1648 1648 … … 1662 1662 if (contentsSize().isEmpty()) { 1663 1663 #if DEBUG_WEBPAGE_LOAD 1664 Platform::log(Platform::LogLevelInfo, "WebPagePrivate::zoomToInitialScaleOnLoad content is empty!");1664 BBLOG(Platform::LogLevelInfo, "WebPagePrivate::zoomToInitialScaleOnLoad content is empty!"); 1665 1665 #endif 1666 1666 requestLayoutIfNeeded(); … … 5469 5469 if (!m_rootLayerCommitTimer->isActive()) { 5470 5470 #if DEBUG_AC_COMMIT 5471 Platform::log(Platform::LogLevelCritical, "%s: m_rootLayerCommitTimer->isActive() = %d", WTF_PRETTY_FUNCTION, m_rootLayerCommitTimer->isActive());5471 BBLOG(Platform::LogLevelCritical, "%s: m_rootLayerCommitTimer->isActive() = %d", WTF_PRETTY_FUNCTION, m_rootLayerCommitTimer->isActive()); 5472 5472 #endif 5473 5473 m_rootLayerCommitTimer->startOneShot(0); … … 5557 5557 { 5558 5558 #if DEBUG_AC_COMMIT 5559 Platform::log(Platform::LogLevelCritical, "%s: m_compositor = 0x%x",5559 BBLOG(Platform::LogLevelCritical, "%s: m_compositor = 0x%x", 5560 5560 WTF_PRETTY_FUNCTION, m_compositor.get()); 5561 5561 #endif … … 5596 5596 { 5597 5597 #if DEBUG_AC_COMMIT 5598 Platform::log(Platform::LogLevelCritical, "%s: m_suspendRootLayerCommit = %d, m_needsCommit = %d, m_frameLayers = 0x%x, m_frameLayers->hasLayer() = %d, needsLayoutRecursive() = %d",5598 BBLOG(Platform::LogLevelCritical, "%s: m_suspendRootLayerCommit = %d, m_needsCommit = %d, m_frameLayers = 0x%x, m_frameLayers->hasLayer() = %d, needsLayoutRecursive() = %d", 5599 5599 WTF_PRETTY_FUNCTION, 5600 5600 m_suspendRootLayerCommit, … … 5674 5674 5675 5675 #if DEBUG_AC_COMMIT 5676 Platform::log(Platform::LogLevelCritical, "%s", WTF_PRETTY_FUNCTION);5676 BBLOG(Platform::LogLevelCritical, "%s", WTF_PRETTY_FUNCTION); 5677 5677 #endif 5678 5678 … … 5701 5701 if (needsOneShotDrawingSynchronization()) { 5702 5702 #if DEBUG_AC_COMMIT 5703 Platform::log(Platform::LogLevelCritical, "%s: OneShotDrawingSynchronization code path!", WTF_PRETTY_FUNCTION);5703 BBLOG(Platform::LogLevelCritical, "%s: OneShotDrawingSynchronization code path!", WTF_PRETTY_FUNCTION); 5704 5704 #endif 5705 5705 -
trunk/Source/WebKit/blackberry/ChangeLog
r131326 r131335 1 2012-10-15 Jonathan Dong <jonathan.dong@torchmobile.com.cn> 2 3 [BlackBerry] replace BlackBerry::Platform::log() with BBLOG() 4 https://bugs.webkit.org/show_bug.cgi?id=99302 5 6 Reviewed by Rob Buis. 7 8 RIM PR: 210884 9 The marco BBLOG() is defined as a no-op in release mode which will 10 save a function call in the release build. 11 Internally reviewed by Charles Wei. 12 13 * Api/BackingStore.cpp: 14 (BlackBerry::WebKit::bestDivisor): 15 (BlackBerry::WebKit::BackingStorePrivate::suspendScreenAndBackingStoreUpdates): 16 (BlackBerry::WebKit::BackingStorePrivate::resumeScreenAndBackingStoreUpdates): 17 (BlackBerry::WebKit::BackingStorePrivate::repaint): 18 (BlackBerry::WebKit::BackingStorePrivate::slowScroll): 19 (BlackBerry::WebKit::BackingStorePrivate::scroll): 20 (BlackBerry::WebKit::BackingStorePrivate::setBackingStoreRect): 21 (BlackBerry::WebKit::BackingStorePrivate::scrollBackingStore): 22 (BlackBerry::WebKit::BackingStorePrivate::render): 23 (BlackBerry::WebKit::BackingStorePrivate::blitVisibleContents): 24 (BlackBerry::WebKit::BackingStorePrivate::updateTilesForScrollOrNotRenderedRegion): 25 (BlackBerry::WebKit::BackingStorePrivate::renderContents): 26 (BlackBerry::WebKit::BackingStorePrivate::blitToWindow): 27 (BlackBerry::WebKit::BackingStorePrivate::fillWindow): 28 (BlackBerry::WebKit::BackingStorePrivate::invalidateWindow): 29 (BlackBerry::WebKit::BackingStorePrivate::clearWindow): 30 * Api/WebPage.cpp: 31 (BlackBerry::WebKit::WebPagePrivate::setLoadState): 32 (BlackBerry::WebKit::WebPagePrivate::zoomAboutPoint): 33 (BlackBerry::WebKit::WebPagePrivate::contentsSizeChanged): 34 (BlackBerry::WebKit::WebPagePrivate::zoomToInitialScaleOnLoad): 35 (BlackBerry::WebKit::WebPagePrivate::scheduleRootLayerCommit): 36 (BlackBerry::WebKit::WebPagePrivate::commitRootLayer): 37 (BlackBerry::WebKit::WebPagePrivate::commitRootLayerIfNeeded): 38 (BlackBerry::WebKit::WebPagePrivate::rootLayerCommitTimerFired): 39 * WebCoreSupport/ChromeClientBlackBerry.cpp: 40 (WebCore::ChromeClientBlackBerry::overflowExceedsContentsSize): 41 (WebCore::ChromeClientBlackBerry::didDiscoverFrameSet): 42 * WebCoreSupport/FrameLoaderClientBlackBerry.cpp: 43 (WebCore::FrameLoaderClientBlackBerry::dispatchDidLayout): 44 * WebKitSupport/FatFingers.cpp: 45 (BlackBerry::WebKit::FatFingers::checkFingerIntersection): 46 (BlackBerry::WebKit::FatFingers::findIntersectingRegions): 47 (BlackBerry::WebKit::FatFingers::checkForText): 48 * WebKitSupport/RenderQueue.cpp: 49 (BlackBerry::WebKit::RenderQueue::addToRegularQueue): 50 (BlackBerry::WebKit::RenderQueue::addToScrollZoomQueue): 51 (BlackBerry::WebKit::RenderQueue::render): 52 (BlackBerry::WebKit::RenderQueue::renderAllCurrentRegularRenderJobs): 53 (BlackBerry::WebKit::RenderQueue::startRegularRenderJobBatchIfNeeded): 54 (BlackBerry::WebKit::RenderQueue::renderVisibleZoomJob): 55 (BlackBerry::WebKit::RenderQueue::renderVisibleScrollJob): 56 (BlackBerry::WebKit::RenderQueue::renderRegularRenderJob): 57 (BlackBerry::WebKit::RenderQueue::renderNonVisibleScrollJob): 58 * WebKitSupport/SurfacePool.cpp: 59 (BlackBerry::WebKit::SurfacePool::initialize): 60 1 61 2012-10-15 Xiaobo Wang <xbwang@torchmobile.com.cn> 2 62 -
trunk/Source/WebKit/blackberry/WebCoreSupport/ChromeClientBlackBerry.cpp
r131316 r131335 680 680 681 681 #if DEBUG_OVERFLOW_DETECTION 682 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelInfo, "ChromeClientBlackBerry::overflowExceedsContentsSize contents=%dx%d overflow=%dx%d",682 BBLOG(BlackBerry::Platform::LogLevelInfo, "ChromeClientBlackBerry::overflowExceedsContentsSize contents=%dx%d overflow=%dx%d", 683 683 frame->contentRenderer()->rightLayoutOverflow(), 684 684 frame->contentRenderer()->bottomLayoutOverflow(), … … 694 694 return; 695 695 696 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelInfo, "ChromeClientBlackBerry::didDiscoverFrameSet");696 BBLOG(BlackBerry::Platform::LogLevelInfo, "ChromeClientBlackBerry::didDiscoverFrameSet"); 697 697 if (m_webPagePrivate->loadState() == WebPagePrivate::Committed) { 698 698 m_webPagePrivate->setShouldUseFixedDesktopMode(true); -
trunk/Source/WebKit/blackberry/WebCoreSupport/FrameLoaderClientBlackBerry.cpp
r131316 r131335 852 852 853 853 if (milestones & DidFirstVisuallyNonEmptyLayout) { 854 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelInfo, "dispatchDidFirstVisuallyNonEmptyLayout");854 BBLOG(BlackBerry::Platform::LogLevelInfo, "dispatchDidFirstVisuallyNonEmptyLayout"); 855 855 856 856 readyToRender(true); -
trunk/Source/WebKit/blackberry/WebKitSupport/FatFingers.cpp
r130804 r131335 279 279 else 280 280 nodeName = "unknown node"; 281 log(LogLevelInfo, "%s has region %s, intersecting at %s (area %d)", nodeName.latin1().data(),281 BBLOG(LogLevelInfo, "%s has region %s, intersecting at %s (area %d)", nodeName.latin1().data(), 282 282 regionCopy.toString().c_str(), intersection.toString().c_str(), intersection.area()); 283 283 #endif … … 304 304 IntRect fingerRect(fingerRectForPoint(frameContentPos)); 305 305 IntRect screenFingerRect = m_webPage->mapToTransformed(fingerRect); 306 log(LogLevelInfo, "fat finger rect now %d, %d, %d, %d", screenFingerRect.x(), screenFingerRect.y(), screenFingerRect.width(), screenFingerRect.height());306 BBLOG(LogLevelInfo, "fat finger rect now %d, %d, %d, %d", screenFingerRect.x(), screenFingerRect.y(), screenFingerRect.width(), screenFingerRect.height()); 307 307 308 308 // only record the first finger rect … … 434 434 if (!range->text().stripWhiteSpace().isEmpty()) { 435 435 #if DEBUG_FAT_FINGERS 436 log(LogLevelInfo, "Checking word '%s'", range->text().latin1().data());436 BBLOG(LogLevelInfo, "Checking word '%s'", range->text().latin1().data()); 437 437 #endif 438 438 IntRectRegion rangeRegion(DOMSupport::transformedBoundingBoxForRange(*range)); -
trunk/Source/WebKit/blackberry/WebKitSupport/RenderQueue.cpp
r129112 r131335 363 363 #if DEBUG_RENDER_QUEUE 364 364 if (m_regularRenderJobsRegion.isRectInRegion(rect) != Platform::IntRectRegion::ContainedInRegion) { 365 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelCritical, "RenderQueue::addToRegularQueue %d,%d %dx%d",365 BBLOG(BlackBerry::Platform::LogLevelCritical, "RenderQueue::addToRegularQueue %d,%d %dx%d", 366 366 rect.x(), rect.y(), rect.width(), rect.height()); 367 367 } … … 384 384 385 385 #if DEBUG_RENDER_QUEUE 386 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelCritical, "RenderQueue::addToScrollZoomQueue %d,%d %dx%d",386 BBLOG(BlackBerry::Platform::LogLevelCritical, "RenderQueue::addToScrollZoomQueue %d,%d %dx%d", 387 387 rect.x(), rect.y(), rect.width(), rect.height()); 388 388 #endif … … 570 570 double elapsed = WTF::currentTime() - time; 571 571 if (elapsed) 572 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelCritical, "RenderQueue::render layout elapsed=%f", elapsed);572 BBLOG(BlackBerry::Platform::LogLevelCritical, "RenderQueue::render layout elapsed=%f", elapsed); 573 573 #endif 574 574 … … 600 600 double elapsed = WTF::currentTime() - time; 601 601 if (elapsed) 602 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelCritical, "RenderQueue::renderAllCurrentRegularRenderJobs layout elapsed=%f", elapsed);602 BBLOG(BlackBerry::Platform::LogLevelCritical, "RenderQueue::renderAllCurrentRegularRenderJobs layout elapsed=%f", elapsed); 603 603 #endif 604 604 … … 627 627 #if DEBUG_RENDER_QUEUE 628 628 if (!regionNotRendered.isEmpty()) 629 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelCritical, "RenderQueue::renderAllCurrentRegularRenderJobs region not completely rendered!");629 BBLOG(BlackBerry::Platform::LogLevelCritical, "RenderQueue::renderAllCurrentRegularRenderJobs region not completely rendered!"); 630 630 #endif 631 631 … … 646 646 Platform::IntRect extents = m_currentRegularRenderJobsBatchRegion.extents(); 647 647 int numberOfRects = m_currentRegularRenderJobsBatchRegion.rects().size(); 648 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelCritical, "RenderQueue::renderAllCurrentRegularRenderJobs extents=(%d,%d %dx%d) numberOfRects=%d elapsed=%f",648 BBLOG(BlackBerry::Platform::LogLevelCritical, "RenderQueue::renderAllCurrentRegularRenderJobs extents=(%d,%d %dx%d) numberOfRects=%d elapsed=%f", 649 649 extents.x(), extents.y(), extents.width(), extents.height(), numberOfRects, elapsed); 650 650 #endif … … 682 682 683 683 #if DEBUG_RENDER_QUEUE 684 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelCritical, "RenderQueue::startRegularRenderJobBatchIfNeeded batch size is %d!", m_currentRegularRenderJobsBatch.size());684 BBLOG(BlackBerry::Platform::LogLevelCritical, "RenderQueue::startRegularRenderJobBatchIfNeeded batch size is %d!", m_currentRegularRenderJobsBatch.size()); 685 685 #endif 686 686 } … … 709 709 // Stop the time measurement 710 710 double elapsed = WTF::currentTime() - time; 711 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelCritical, "RenderQueue::renderVisibleZoomJob rect=(%d,%d %dx%d) elapsed=%f",711 BBLOG(BlackBerry::Platform::LogLevelCritical, "RenderQueue::renderVisibleZoomJob rect=(%d,%d %dx%d) elapsed=%f", 712 712 subRect.x(), subRect.y(), subRect.width(), subRect.height(), elapsed); 713 713 #endif … … 728 728 // Stop the time measurement 729 729 double elapsed = WTF::currentTime() - time; 730 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelCritical, "RenderQueue::renderVisibleScrollJob sort elapsed=%f", elapsed);730 BBLOG(BlackBerry::Platform::LogLevelCritical, "RenderQueue::renderVisibleScrollJob sort elapsed=%f", elapsed); 731 731 #endif 732 732 … … 749 749 // Stop the time measurement 750 750 double elapsed = WTF::currentTime() - time; 751 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelCritical, "RenderQueue::renderVisibleScrollJob rect=(%d,%d %dx%d) elapsed=%f",751 BBLOG(BlackBerry::Platform::LogLevelCritical, "RenderQueue::renderVisibleScrollJob rect=(%d,%d %dx%d) elapsed=%f", 752 752 subRect.x(), subRect.y(), subRect.width(), subRect.height(), elapsed); 753 753 #endif … … 781 781 #if DEBUG_RENDER_QUEUE 782 782 if (!regionNotRendered.isEmpty()) { 783 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelCritical, "RenderQueue::renderRegularRenderJob rect (%d,%d %dx%d) not completely rendered!",783 BBLOG(BlackBerry::Platform::LogLevelCritical, "RenderQueue::renderRegularRenderJob rect (%d,%d %dx%d) not completely rendered!", 784 784 rect.x(), rect.y(), rect.width(), rect.height()); 785 785 } … … 796 796 // Stop the time measurement. 797 797 double elapsed = WTF::currentTime() - time; 798 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelCritical, "RenderQueue::renderRegularRenderJob rect=(%d,%d %dx%d) elapsed=%f",798 BBLOG(BlackBerry::Platform::LogLevelCritical, "RenderQueue::renderRegularRenderJob rect=(%d,%d %dx%d) elapsed=%f", 799 799 rect.x(), rect.y(), rect.width(), rect.height(), elapsed); 800 800 #endif … … 830 830 // Stop the time measurement. 831 831 double elapsed = WTF::currentTime() - time; 832 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelCritical, "RenderQueue::renderNonVisibleScrollJob sort elapsed=%f", elapsed);832 BBLOG(BlackBerry::Platform::LogLevelCritical, "RenderQueue::renderNonVisibleScrollJob sort elapsed=%f", elapsed); 833 833 #endif 834 834 … … 855 855 // Stop the time measurement. 856 856 double elapsed = WTF::currentTime() - time; 857 B lackBerry::Platform::log(BlackBerry::Platform::LogLevelCritical, "RenderQueue::renderNonVisibleScrollJob rect=(%d,%d %dx%d) elapsed=%f",857 BBLOG(BlackBerry::Platform::LogLevelCritical, "RenderQueue::renderNonVisibleScrollJob rect=(%d,%d %dx%d) elapsed=%f", 858 858 subRect.x(), subRect.y(), subRect.width(), subRect.height(), elapsed); 859 859 #endif -
trunk/Source/WebKit/blackberry/WebKitSupport/SurfacePool.cpp
r131316 r131335 78 78 bool success = Platform::Graphics::createPixmapGroup(SHARED_PIXMAP_GROUP, byteLimit); 79 79 if (!success) { 80 Platform::log(Platform::LogLevelWarn,80 BBLOG(Platform::LogLevelWarn, 81 81 "Shared buffer pool could not be set up, using regular memory allocation instead."); 82 82 }
Note:
See TracChangeset
for help on using the changeset viewer.