Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Side by Side Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp

Issue 2555363004: [6/6] git cl format (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/tiles/tile_manager.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 } else { 429 } else {
430 if (hasScrollingLayer()) 430 if (hasScrollingLayer())
431 m_scrollingContentsLayer->setContentsOpaque(false); 431 m_scrollingContentsLayer->setContentsOpaque(false);
432 m_graphicsLayer->setContentsOpaque( 432 m_graphicsLayer->setContentsOpaque(
433 m_owningLayer.backgroundIsKnownToBeOpaqueInRect(compositedBounds())); 433 m_owningLayer.backgroundIsKnownToBeOpaqueInRect(compositedBounds()));
434 } 434 }
435 } 435 }
436 } 436 }
437 437
438 void CompositedLayerMapping::updateRasterizationPolicy() { 438 void CompositedLayerMapping::updateRasterizationPolicy() {
439 bool allowTransformedRasterization = !requiresCompositing(m_owningLayer.getCom positingReasons() & ~CompositingReasonSquashingDisallowed); 439 bool allowTransformedRasterization =
440 m_graphicsLayer->contentLayer()->setAllowTransformedRasterization(allowTransfo rmedRasterization); 440 !requiresCompositing(m_owningLayer.getCompositingReasons() &
441 ~CompositingReasonSquashingDisallowed);
442 m_graphicsLayer->contentLayer()->setAllowTransformedRasterization(
443 allowTransformedRasterization);
441 if (m_squashingLayer) 444 if (m_squashingLayer)
442 m_squashingLayer->contentLayer()->setAllowTransformedRasterization(true); 445 m_squashingLayer->contentLayer()->setAllowTransformedRasterization(true);
443 } 446 }
444 447
445 void CompositedLayerMapping::updateCompositedBounds() { 448 void CompositedLayerMapping::updateCompositedBounds() {
446 ASSERT(m_owningLayer.compositor()->lifecycle().state() == 449 ASSERT(m_owningLayer.compositor()->lifecycle().state() ==
447 DocumentLifecycle::InCompositingUpdate); 450 DocumentLifecycle::InCompositingUpdate);
448 // FIXME: if this is really needed for performance, it would be better to 451 // FIXME: if this is really needed for performance, it would be better to
449 // store it on Layer. 452 // store it on Layer.
450 m_compositedBounds = m_owningLayer.boundingBoxForCompositing(); 453 m_compositedBounds = m_owningLayer.boundingBoxForCompositing();
(...skipping 2915 matching lines...) Expand 10 before | Expand all | Expand 10 after
3366 } else if (graphicsLayer == m_decorationOutlineLayer.get()) { 3369 } else if (graphicsLayer == m_decorationOutlineLayer.get()) {
3367 name = "Decoration Layer"; 3370 name = "Decoration Layer";
3368 } else { 3371 } else {
3369 ASSERT_NOT_REACHED(); 3372 ASSERT_NOT_REACHED();
3370 } 3373 }
3371 3374
3372 return name; 3375 return name;
3373 } 3376 }
3374 3377
3375 } // namespace blink 3378 } // namespace blink
OLDNEW
« no previous file with comments | « cc/tiles/tile_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698