summaryrefslogtreecommitdiffstats
path: root/cc/direct_renderer.cc
diff options
context:
space:
mode:
authorleandrogracia@chromium.org <leandrogracia@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-15 21:45:52 +0000
committerleandrogracia@chromium.org <leandrogracia@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-15 21:45:52 +0000
commitf35e232a94af088f5a1a231f2489a5b06460bffe (patch)
tree124388157fbe8e64db6181a9b5467a3ca3fc8be0 /cc/direct_renderer.cc
parent3ff3a45baf225760a1ceab36868e333010f555ee (diff)
downloadchromium_src-f35e232a94af088f5a1a231f2489a5b06460bffe.zip
chromium_src-f35e232a94af088f5a1a231f2489a5b06460bffe.tar.gz
chromium_src-f35e232a94af088f5a1a231f2489a5b06460bffe.tar.bz2
[Android WebView] Tie together Chrome's browser compositor with the Android View system.
This patch introduces a new feature to the compositor: - A setting to enable cleaning the framebuffer, disabled by default. This prevents destroying data below us when rendering non-rectangular views (e.g. during a rotation). A second required feature will be added by a later patch: - A device scissor rect that intersects any scissor calculation. Used to ensure we never render outside where the Android View System tells us. There are also some issues with the Android View side regarding the restoration of the GL state. This patch introduces a temporary workaround by reading and manually restoring the state changed by the compositor. This will go out as soon as the problem is fixed in the Android side. BUG=161409,154180 Review URL: https://chromiumcodereview.appspot.com/11316310 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173324 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/direct_renderer.cc')
-rw-r--r--cc/direct_renderer.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/cc/direct_renderer.cc b/cc/direct_renderer.cc
index 1682e91..d5dc975 100644
--- a/cc/direct_renderer.cc
+++ b/cc/direct_renderer.cc
@@ -238,7 +238,8 @@ void DirectRenderer::drawRenderPass(DrawingFrame& frame, const RenderPass* rende
setScissorTestRect(moveScissorToWindowSpace(frame, renderPassScissor));
}
- clearFramebuffer(frame);
+ if (frame.currentRenderPass != frame.rootRenderPass || m_client->shouldClearRootRenderPass())
+ clearFramebuffer(frame);
const QuadList& quadList = renderPass->quad_list;
for (QuadList::constBackToFrontIterator it = quadList.backToFrontBegin(); it != quadList.backToFrontEnd(); ++it) {