| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 "CCTextureUpdateController.h" | 7 #include "CCTextureUpdateController.h" |
| 8 | 8 |
| 9 #include "CCSchedulerTestCommon.h" | 9 #include "CCSchedulerTestCommon.h" |
| 10 #include "CCSingleThreadProxy.h" // For DebugScopedSetImplThread | 10 #include "CCSingleThreadProxy.h" // For DebugScopedSetImplThread |
| 11 #include "CCTiledLayerTestCommon.h" | 11 #include "CCTiledLayerTestCommon.h" |
| 12 #include "FakeWebCompositorOutputSurface.h" | 12 #include "FakeWebCompositorOutputSurface.h" |
| 13 #include "FakeWebGraphicsContext3D.h" | 13 #include "FakeWebGraphicsContext3D.h" |
| 14 #include "WebCompositorInitializer.h" | 14 #include "WebCompositorInitializer.h" |
| 15 #include <gtest/gtest.h> | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 #include <public/WebThread.h> | 16 #include <public/WebThread.h> |
| 17 #include <wtf/RefPtr.h> | 17 #include <wtf/RefPtr.h> |
| 18 | 18 |
| 19 using namespace cc; | 19 using namespace cc; |
| 20 using namespace WebKit; | 20 using namespace WebKit; |
| 21 using namespace WebKitTests; | 21 using namespace WebKitTests; |
| 22 using testing::Test; | 22 using testing::Test; |
| 23 | 23 |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| (...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 EXPECT_EQ(0u, m_queue->fullUploadSize()); | 563 EXPECT_EQ(0u, m_queue->fullUploadSize()); |
| 564 EXPECT_EQ(1u, m_queue->partialUploadSize()); | 564 EXPECT_EQ(1u, m_queue->partialUploadSize()); |
| 565 | 565 |
| 566 m_textures[1].evictBackingResource(); | 566 m_textures[1].evictBackingResource(); |
| 567 m_queue->clearUploadsToEvictedResources(); | 567 m_queue->clearUploadsToEvictedResources(); |
| 568 EXPECT_EQ(0u, m_queue->fullUploadSize()); | 568 EXPECT_EQ(0u, m_queue->fullUploadSize()); |
| 569 EXPECT_EQ(0u, m_queue->partialUploadSize()); | 569 EXPECT_EQ(0u, m_queue->partialUploadSize()); |
| 570 } | 570 } |
| 571 | 571 |
| 572 } // namespace | 572 } // namespace |
| OLD | NEW |