diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-17 06:10:06 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-17 06:10:06 +0000 |
commit | 35d7e967e7182a63a43eaa6d0e3d43e1b727879c (patch) | |
tree | 91d434fbb6e7055da188cf7caba462be08725833 /cc/render_pass.cc | |
parent | a8883e454b594fbcc00b9d36a1958b6f85c0632d (diff) | |
download | chromium_src-35d7e967e7182a63a43eaa6d0e3d43e1b727879c.zip chromium_src-35d7e967e7182a63a43eaa6d0e3d43e1b727879c.tar.gz chromium_src-35d7e967e7182a63a43eaa6d0e3d43e1b727879c.tar.bz2 |
cc: Remove opaque flags from SharedQuadState and DrawQuad
Now we will use the opaqueRect (already present on DrawQuad) to tell when things
are opaque or not.
Each Quad constructor that can be opaque take an opaqueRect. Generally,
callers set it equal to the quadRect when contentsOpaque(). TiledLayerImpl can
set it to a smaller rect sometimes since it has more knowledge.
This made the scrollbar code a bit nicer for the thumb so that it doesn't need
to set needs_blending anymore, as the thumb can be marked non-opaque.
DebugBorderQuad sets an empty opaqueRect now, so it doesn't need to set
needs_blending.
Covered by existing tests.
BUG=152337
R=enne
Review URL: https://chromiumcodereview.appspot.com/11412044
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168387 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/render_pass.cc')
-rw-r--r-- | cc/render_pass.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cc/render_pass.cc b/cc/render_pass.cc index 3d26bcc..01d7877 100644 --- a/cc/render_pass.cc +++ b/cc/render_pass.cc @@ -92,8 +92,7 @@ void RenderPass::appendQuadsToFillScreen(LayerImpl* rootLayer, SkColor screenBac // FIXME: Make the gutter quads generated by the solid color layer (make it smarter about generating quads to fill unoccluded areas). gfx::Rect rootTargetRect = rootLayer->renderSurface()->contentRect(); float opacity = 1; - bool opaque = true; - SharedQuadState* sharedQuadState = quadCuller.useSharedQuadState(SharedQuadState::create(rootLayer->drawTransform(), rootTargetRect, rootTargetRect, opacity, opaque)); + SharedQuadState* sharedQuadState = quadCuller.useSharedQuadState(SharedQuadState::create(rootLayer->drawTransform(), rootTargetRect, rootTargetRect, opacity)); DCHECK(rootLayer->screenSpaceTransform().isInvertible()); WebTransformationMatrix transformToLayerSpace = rootLayer->screenSpaceTransform().inverse(); for (Region::Iterator fillRects(fillRegion); fillRects.has_rect(); fillRects.next()) { |