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

Side by Side Diff: cc/layer_unittest.cc

Issue 11264056: cc: Use gfx:: Geometry types for positions, bounds, and related things. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: some missed intstuff Created 8 years, 1 month 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 | Annotate | Revision Log
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 "cc/layer.h" 7 #include "cc/layer.h"
8 8
9 #include "cc/keyframed_animation_curve.h" 9 #include "cc/keyframed_animation_curve.h"
10 #include "cc/layer_impl.h" 10 #include "cc/layer_impl.h"
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 415
416 TEST_F(LayerTest, checkSetNeedsDisplayCausesCorrectBehavior) 416 TEST_F(LayerTest, checkSetNeedsDisplayCausesCorrectBehavior)
417 { 417 {
418 // The semantics for setNeedsDisplay which are tested here: 418 // The semantics for setNeedsDisplay which are tested here:
419 // 1. sets needsDisplay flag appropriately. 419 // 1. sets needsDisplay flag appropriately.
420 // 2. indirectly calls setNeedsCommit, exactly once for each call to setNe edsDisplay. 420 // 2. indirectly calls setNeedsCommit, exactly once for each call to setNe edsDisplay.
421 421
422 scoped_refptr<Layer> testLayer = Layer::create(); 422 scoped_refptr<Layer> testLayer = Layer::create();
423 testLayer->setLayerTreeHost(m_layerTreeHost.get()); 423 testLayer->setLayerTreeHost(m_layerTreeHost.get());
424 424
425 IntSize testBounds = IntSize(501, 508); 425 gfx::Size testBounds = gfx::Size(501, 508);
426 426
427 FloatRect dirty1 = FloatRect(10, 15, 1, 2); 427 gfx::RectF dirty1 = gfx::RectF(10, 15, 1, 2);
428 FloatRect dirty2 = FloatRect(20, 25, 3, 4); 428 gfx::RectF dirty2 = gfx::RectF(20, 25, 3, 4);
429 FloatRect emptyDirtyRect = FloatRect(40, 45, 0, 0); 429 gfx::RectF emptyDirtyRect = gfx::RectF(40, 45, 0, 0);
430 FloatRect outOfBoundsDirtyRect = FloatRect(400, 405, 500, 502); 430 gfx::RectF outOfBoundsDirtyRect = gfx::RectF(400, 405, 500, 502);
431 431
432 // Before anything, testLayer should not be dirty. 432 // Before anything, testLayer should not be dirty.
433 EXPECT_FALSE(testLayer->needsDisplay()); 433 EXPECT_FALSE(testLayer->needsDisplay());
434 434
435 // This is just initialization, but setNeedsCommit behavior is verified anyw ay to avoid warnings. 435 // This is just initialization, but setNeedsCommit behavior is verified anyw ay to avoid warnings.
436 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setBounds(testBou nds)); 436 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setBounds(testBou nds));
437 testLayer = Layer::create(); 437 testLayer = Layer::create();
438 testLayer->setLayerTreeHost(m_layerTreeHost.get()); 438 testLayer->setLayerTreeHost(m_layerTreeHost.get());
439 EXPECT_FALSE(testLayer->needsDisplay()); 439 EXPECT_FALSE(testLayer->needsDisplay());
440 440
(...skipping 30 matching lines...) Expand all
471 { 471 {
472 scoped_refptr<Layer> testLayer = Layer::create(); 472 scoped_refptr<Layer> testLayer = Layer::create();
473 testLayer->setLayerTreeHost(m_layerTreeHost.get()); 473 testLayer->setLayerTreeHost(m_layerTreeHost.get());
474 474
475 scoped_refptr<Layer> dummyLayer = Layer::create(); // just a dummy layer for this test case. 475 scoped_refptr<Layer> dummyLayer = Layer::create(); // just a dummy layer for this test case.
476 476
477 // sanity check of initial test condition 477 // sanity check of initial test condition
478 EXPECT_FALSE(testLayer->needsDisplay()); 478 EXPECT_FALSE(testLayer->needsDisplay());
479 479
480 // Test properties that should not call needsDisplay and needsCommit when ch anged. 480 // Test properties that should not call needsDisplay and needsCommit when ch anged.
481 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(0, testLayer->setVisibleContent Rect(IntRect(0, 0, 40, 50))); 481 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(0, testLayer->setVisibleContent Rect(gfx::Rect(0, 0, 40, 50)));
482 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(0, testLayer->setUseLCDText(tru e)); 482 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(0, testLayer->setUseLCDText(tru e));
483 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(0, testLayer->setDrawOpacity(0. 5)); 483 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(0, testLayer->setDrawOpacity(0. 5));
484 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(0, testLayer->setRenderTarget(0 )); 484 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(0, testLayer->setRenderTarget(0 ));
485 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(0, testLayer->setDrawTransform( WebTransformationMatrix())); 485 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(0, testLayer->setDrawTransform( WebTransformationMatrix()));
486 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(0, testLayer->setScreenSpaceTra nsform(WebTransformationMatrix())); 486 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(0, testLayer->setScreenSpaceTra nsform(WebTransformationMatrix()));
487 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(0, testLayer->setDrawableConten tRect(IntRect(4, 5, 6, 7))); 487 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(0, testLayer->setDrawableConten tRect(gfx::Rect(4, 5, 6, 7)));
488 EXPECT_FALSE(testLayer->needsDisplay()); 488 EXPECT_FALSE(testLayer->needsDisplay());
489 489
490 // Next, test properties that should call setNeedsCommit (but not setNeedsDi splay) 490 // Next, test properties that should call setNeedsCommit (but not setNeedsDi splay)
491 // All properties need to be set to new values in order for setNeedsCommit t o be called. 491 // All properties need to be set to new values in order for setNeedsCommit t o be called.
492 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setAnchorPoint(Fl oatPoint(1.23f, 4.56f))); 492 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setAnchorPoint(gf x::PointF(1.23f, 4.56f)));
493 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setAnchorPointZ(0 .7f)); 493 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setAnchorPointZ(0 .7f));
494 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setBackgroundColo r(SK_ColorLTGRAY)); 494 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setBackgroundColo r(SK_ColorLTGRAY));
495 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setMasksToBounds( true)); 495 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setMasksToBounds( true));
496 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setMaskLayer(dumm yLayer.get())); 496 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setMaskLayer(dumm yLayer.get()));
497 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setOpacity(0.5)); 497 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setOpacity(0.5));
498 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setContentsOpaque (true)); 498 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setContentsOpaque (true));
499 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setPosition(Float Point(4, 9))); 499 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setPosition(gfx:: PointF(4, 9)));
500 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setReplicaLayer(d ummyLayer.get())); 500 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setReplicaLayer(d ummyLayer.get()));
501 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setSublayerTransf orm(WebTransformationMatrix(0, 0, 0, 0, 0, 0))); 501 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setSublayerTransf orm(WebTransformationMatrix(0, 0, 0, 0, 0, 0)));
502 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setScrollable(tru e)); 502 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setScrollable(tru e));
503 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setShouldScrollOn MainThread(true)); 503 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setShouldScrollOn MainThread(true));
504 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setNonFastScrolla bleRegion(Region(IntRect(1, 1, 2, 2)))); 504 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setNonFastScrolla bleRegion(Region(IntRect(1, 1, 2, 2))));
505 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setHaveWheelEvent Handlers(true)); 505 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setHaveWheelEvent Handlers(true));
506 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setScrollPosition (IntPoint(10, 10))); 506 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setScrollPosition (IntPoint(10, 10)));
507 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setTransform(WebT ransformationMatrix(0, 0, 0, 0, 0, 0))); 507 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setTransform(WebT ransformationMatrix(0, 0, 0, 0, 0, 0)));
508 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setDoubleSided(fa lse)); 508 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setDoubleSided(fa lse));
509 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setDebugName("Tes t Layer")); 509 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setDebugName("Tes t Layer"));
510 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setDrawCheckerboa rdForMissingTiles(!testLayer->drawCheckerboardForMissingTiles())); 510 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setDrawCheckerboa rdForMissingTiles(!testLayer->drawCheckerboardForMissingTiles()));
511 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setForceRenderSur face(true)); 511 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setForceRenderSur face(true));
512 512
513 // The above tests should not have caused a change to the needsDisplay flag. 513 // The above tests should not have caused a change to the needsDisplay flag.
514 EXPECT_FALSE(testLayer->needsDisplay()); 514 EXPECT_FALSE(testLayer->needsDisplay());
515 515
516 // Test properties that should call setNeedsDisplay and setNeedsCommit 516 // Test properties that should call setNeedsDisplay and setNeedsCommit
517 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setBounds(IntSize (5, 10))); 517 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setBounds(gfx::Si ze(5, 10)));
518 EXPECT_TRUE(testLayer->needsDisplay()); 518 EXPECT_TRUE(testLayer->needsDisplay());
519 } 519 }
520 520
521 TEST_F(LayerTest, verifyPushPropertiesAccumulatesUpdateRect) 521 TEST_F(LayerTest, verifyPushPropertiesAccumulatesUpdateRect)
522 { 522 {
523 DebugScopedSetImplThread setImplThread; 523 DebugScopedSetImplThread setImplThread;
524 524
525 scoped_refptr<Layer> testLayer = Layer::create(); 525 scoped_refptr<Layer> testLayer = Layer::create();
526 scoped_ptr<LayerImpl> implLayer = LayerImpl::create(1); 526 scoped_ptr<LayerImpl> implLayer = LayerImpl::create(1);
527 527
528 testLayer->setNeedsDisplayRect(FloatRect(FloatPoint::zero(), FloatSize(5, 5) )); 528 testLayer->setNeedsDisplayRect(gfx::RectF(gfx::PointF(), gfx::SizeF(5, 5)));
529 testLayer->pushPropertiesTo(implLayer.get()); 529 testLayer->pushPropertiesTo(implLayer.get());
530 EXPECT_FLOAT_RECT_EQ(FloatRect(FloatPoint::zero(), FloatSize(5, 5)), implLay er->updateRect()); 530 EXPECT_FLOAT_RECT_EQ(gfx::RectF(gfx::PointF(), gfx::SizeF(5, 5)), implLayer- >updateRect());
531 531
532 // The LayerImpl's updateRect should be accumulated here, since we did not d o anything to clear it. 532 // The LayerImpl's updateRect should be accumulated here, since we did not d o anything to clear it.
533 testLayer->setNeedsDisplayRect(FloatRect(FloatPoint(10, 10), FloatSize(5, 5) )); 533 testLayer->setNeedsDisplayRect(gfx::RectF(gfx::PointF(10, 10), gfx::SizeF(5, 5)));
534 testLayer->pushPropertiesTo(implLayer.get()); 534 testLayer->pushPropertiesTo(implLayer.get());
535 EXPECT_FLOAT_RECT_EQ(FloatRect(FloatPoint::zero(), FloatSize(15, 15)), implL ayer->updateRect()); 535 EXPECT_FLOAT_RECT_EQ(gfx::RectF(gfx::PointF(), gfx::SizeF(15, 15)), implLaye r->updateRect());
536 536
537 // If we do clear the LayerImpl side, then the next updateRect should be fre sh without accumulation. 537 // If we do clear the LayerImpl side, then the next updateRect should be fre sh without accumulation.
538 implLayer->resetAllChangeTrackingForSubtree(); 538 implLayer->resetAllChangeTrackingForSubtree();
539 testLayer->setNeedsDisplayRect(FloatRect(FloatPoint(10, 10), FloatSize(5, 5) )); 539 testLayer->setNeedsDisplayRect(gfx::RectF(gfx::PointF(10, 10), gfx::SizeF(5, 5)));
540 testLayer->pushPropertiesTo(implLayer.get()); 540 testLayer->pushPropertiesTo(implLayer.get());
541 EXPECT_FLOAT_RECT_EQ(FloatRect(FloatPoint(10, 10), FloatSize(5, 5)), implLay er->updateRect()); 541 EXPECT_FLOAT_RECT_EQ(gfx::RectF(gfx::PointF(10, 10), gfx::SizeF(5, 5)), impl Layer->updateRect());
542 } 542 }
543 543
544 class LayerWithContentScaling : public Layer { 544 class LayerWithContentScaling : public Layer {
545 public: 545 public:
546 explicit LayerWithContentScaling() 546 explicit LayerWithContentScaling()
547 : Layer() 547 : Layer()
548 { 548 {
549 } 549 }
550 550
551 virtual bool needsContentsScale() const OVERRIDE 551 virtual bool needsContentsScale() const OVERRIDE
552 { 552 {
553 return true; 553 return true;
554 } 554 }
555 555
556 virtual void setNeedsDisplayRect(const FloatRect& dirtyRect) OVERRIDE 556 virtual void setNeedsDisplayRect(const gfx::RectF& dirtyRect) OVERRIDE
557 { 557 {
558 m_lastNeedsDisplayRect = dirtyRect; 558 m_lastNeedsDisplayRect = dirtyRect;
559 Layer::setNeedsDisplayRect(dirtyRect); 559 Layer::setNeedsDisplayRect(dirtyRect);
560 } 560 }
561 561
562 void resetNeedsDisplay() 562 void resetNeedsDisplay()
563 { 563 {
564 m_needsDisplay = false; 564 m_needsDisplay = false;
565 } 565 }
566 566
567 const FloatRect& lastNeedsDisplayRect() const { return m_lastNeedsDisplayRec t; } 567 const gfx::RectF& lastNeedsDisplayRect() const { return m_lastNeedsDisplayRe ct; }
568 568
569 private: 569 private:
570 virtual ~LayerWithContentScaling() 570 virtual ~LayerWithContentScaling()
571 { 571 {
572 } 572 }
573 573
574 FloatRect m_lastNeedsDisplayRect; 574 gfx::RectF m_lastNeedsDisplayRect;
575 }; 575 };
576 576
577 TEST_F(LayerTest, checkContentsScaleChangeTriggersNeedsDisplay) 577 TEST_F(LayerTest, checkContentsScaleChangeTriggersNeedsDisplay)
578 { 578 {
579 scoped_refptr<LayerWithContentScaling> testLayer = make_scoped_refptr(new La yerWithContentScaling()); 579 scoped_refptr<LayerWithContentScaling> testLayer = make_scoped_refptr(new La yerWithContentScaling());
580 testLayer->setLayerTreeHost(m_layerTreeHost.get()); 580 testLayer->setLayerTreeHost(m_layerTreeHost.get());
581 581
582 IntSize testBounds = IntSize(320, 240); 582 gfx::Size testBounds = gfx::Size(320, 240);
583 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setBounds(testBou nds)); 583 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setBounds(testBou nds));
584 584
585 testLayer->resetNeedsDisplay(); 585 testLayer->resetNeedsDisplay();
586 EXPECT_FALSE(testLayer->needsDisplay()); 586 EXPECT_FALSE(testLayer->needsDisplay());
587 587
588 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setContentsScale( testLayer->contentsScale() + 1.f)); 588 EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setContentsScale( testLayer->contentsScale() + 1.f));
589 EXPECT_TRUE(testLayer->needsDisplay()); 589 EXPECT_TRUE(testLayer->needsDisplay());
590 EXPECT_FLOAT_RECT_EQ(FloatRect(0, 0, 320, 240), testLayer->lastNeedsDisplayR ect()); 590 EXPECT_FLOAT_RECT_EQ(gfx::RectF(0, 0, 320, 240), testLayer->lastNeedsDisplay Rect());
591 } 591 }
592 592
593 class FakeLayerImplTreeHost : public LayerTreeHost { 593 class FakeLayerImplTreeHost : public LayerTreeHost {
594 public: 594 public:
595 static scoped_ptr<FakeLayerImplTreeHost> create() 595 static scoped_ptr<FakeLayerImplTreeHost> create()
596 { 596 {
597 scoped_ptr<FakeLayerImplTreeHost> host(new FakeLayerImplTreeHost); 597 scoped_ptr<FakeLayerImplTreeHost> host(new FakeLayerImplTreeHost);
598 // The initialize call will fail, since our client doesn't provide a val id GraphicsContext3D, but it doesn't matter in the tests that use this fake so i gnore the return value. 598 // The initialize call will fail, since our client doesn't provide a val id GraphicsContext3D, but it doesn't matter in the tests that use this fake so i gnore the return value.
599 host->initialize(); 599 host->initialize();
600 return host.Pass(); 600 return host.Pass();
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 private: 833 private:
834 virtual ~MockLayer() 834 virtual ~MockLayer()
835 { 835 {
836 } 836 }
837 }; 837 };
838 838
839 TEST(LayerTestWithoutFixture, setBoundsTriggersSetNeedsRedrawAfterGettingNonEmpt yBounds) 839 TEST(LayerTestWithoutFixture, setBoundsTriggersSetNeedsRedrawAfterGettingNonEmpt yBounds)
840 { 840 {
841 scoped_refptr<MockLayer> layer(new MockLayer); 841 scoped_refptr<MockLayer> layer(new MockLayer);
842 EXPECT_FALSE(layer->needsDisplay()); 842 EXPECT_FALSE(layer->needsDisplay());
843 layer->setBounds(IntSize(0, 10)); 843 layer->setBounds(gfx::Size(0, 10));
844 EXPECT_FALSE(layer->needsDisplay()); 844 EXPECT_FALSE(layer->needsDisplay());
845 layer->setBounds(IntSize(10, 10)); 845 layer->setBounds(gfx::Size(10, 10));
846 EXPECT_TRUE(layer->needsDisplay()); 846 EXPECT_TRUE(layer->needsDisplay());
847 } 847 }
848 848
849 849
850 } // namespace 850 } // namespace
OLDNEW
« cc/layer_tiling_data.cc ('K') | « cc/layer_tree_host_unittest.cc ('k') | cc/math_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698