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

Side by Side Diff: cc/CCLayerTreeHostTest.cpp

Issue 11035020: Renamed LayerChromium::opaque to LayerChromium::contentsOpaque. Having both opaque and opacity on t… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 months 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
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 6
7 #include "CCLayerTreeHost.h" 7 #include "CCLayerTreeHost.h"
8 8
9 #include "CCGeometryTestUtils.h" 9 #include "CCGeometryTestUtils.h"
10 #include "CCGraphicsContext.h" 10 #include "CCGraphicsContext.h"
(...skipping 1455 matching lines...) Expand 10 before | Expand all | Expand 10 after
1466 1466
1467 static void setLayerPropertiesForTesting(LayerChromium* layer, LayerChromium* pa rent, const WebTransformationMatrix& transform, const FloatPoint& anchor, const FloatPoint& position, const IntSize& bounds, bool opaque) 1467 static void setLayerPropertiesForTesting(LayerChromium* layer, LayerChromium* pa rent, const WebTransformationMatrix& transform, const FloatPoint& anchor, const FloatPoint& position, const IntSize& bounds, bool opaque)
1468 { 1468 {
1469 layer->removeAllChildren(); 1469 layer->removeAllChildren();
1470 if (parent) 1470 if (parent)
1471 parent->addChild(layer); 1471 parent->addChild(layer);
1472 layer->setTransform(transform); 1472 layer->setTransform(transform);
1473 layer->setAnchorPoint(anchor); 1473 layer->setAnchorPoint(anchor);
1474 layer->setPosition(position); 1474 layer->setPosition(position);
1475 layer->setBounds(bounds); 1475 layer->setBounds(bounds);
1476 layer->setOpaque(opaque); 1476 layer->setContentsOpaque(opaque);
1477 } 1477 }
1478 1478
1479 class CCLayerTreeHostTestAtomicCommitWithPartialUpdate : public CCLayerTreeHostT est { 1479 class CCLayerTreeHostTestAtomicCommitWithPartialUpdate : public CCLayerTreeHostT est {
1480 public: 1480 public:
1481 CCLayerTreeHostTestAtomicCommitWithPartialUpdate() 1481 CCLayerTreeHostTestAtomicCommitWithPartialUpdate()
1482 : m_parent(ContentLayerChromiumWithUpdateTracking::create(&m_client)) 1482 : m_parent(ContentLayerChromiumWithUpdateTracking::create(&m_client))
1483 , m_child(ContentLayerChromiumWithUpdateTracking::create(&m_client)) 1483 , m_child(ContentLayerChromiumWithUpdateTracking::create(&m_client))
1484 , m_numCommits(0) 1484 , m_numCommits(0)
1485 { 1485 {
1486 // Allow one partial texture update. 1486 // Allow one partial texture update.
(...skipping 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after
2988 int m_numCommitComplete; 2988 int m_numCommitComplete;
2989 int m_numDrawLayers; 2989 int m_numDrawLayers;
2990 }; 2990 };
2991 2991
2992 TEST_F(CCLayerTreeHostTestContinuousAnimate, runMultiThread) 2992 TEST_F(CCLayerTreeHostTestContinuousAnimate, runMultiThread)
2993 { 2993 {
2994 runTest(true); 2994 runTest(true);
2995 } 2995 }
2996 2996
2997 } // namespace 2997 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698