/*
- * Copyright (C) 2009, 2010, 2011 Research In Motion Limited. All rights reserved.
+ * Copyright (C) 2009, 2010, 2011, 2012 Research In Motion Limited. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
{
// Blitting must never happen for direct rendering case.
ASSERT(!shouldDirectRenderingToWindow());
- if (shouldDirectRenderingToWindow())
+ if (shouldDirectRenderingToWindow()) {
+ BlackBerry::Platform::logAlways(BlackBerry::Platform::LogLevelCritical,
+ "BackingStore::blitVisibleContents operation not supported in direct rendering mode");
return;
+ }
if (m_suspendScreenUpdates) {
// Avoid client going into busy loop while updates suspended.
d->setScrollingOrZooming(scrollingOrZooming);
}
+void BackingStore::blitVisibleContents()
+{
+ d->blitVisibleContents(false /*force*/);
+}
+
void BackingStore::blitContents(const BlackBerry::Platform::IntRect& dstRect, const BlackBerry::Platform::IntRect& contents)
{
// Blitting during direct rendering is not supported.
bool isScrollingOrZooming() const;
void setScrollingOrZooming(bool);
+ void blitVisibleContents();
void blitContents(const BlackBerry::Platform::IntRect& dstRect, const BlackBerry::Platform::IntRect& contents);
void repaint(int x, int y, int width, int height, bool contentChanged, bool immediate);
+2012-06-29 Jakob Petsovits <jpetsovits@rim.com>
+
+ Add blitVisibleContents() as public API.
+ https://bugs.webkit.org/show_bug.cgi?id=90211
+
+ Reviewed by Adam Treat.
+
+ We keep blitContents() (with src/dst rectangles)
+ for compatibility with older Cascades sprints for now,
+ but want to switch to always blitting the full viewport
+ and this is a good first step.
+
+ * Api/BackingStore.cpp:
+ (BlackBerry::WebKit::BackingStorePrivate::blitVisibleContents):
+ (BlackBerry::WebKit::BackingStore::blitVisibleContents):
+ (WebKit):
+ * Api/BackingStore.h:
+
2012-06-29 Konrad Piascik <kpiascik@rim.com>
Don't hardcode target dpi of 160 (it should be 96 on desktop)