| 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 "ThrottledTextureUploader.h" | 7 #include "cc/throttled_texture_uploader.h" |
| 8 | 8 |
| 9 #include "CCPrioritizedTexture.h" | 9 #include "CCPrioritizedTexture.h" |
| 10 #include "Extensions3DChromium.h" | 10 #include "Extensions3DChromium.h" |
| 11 #include "GraphicsContext3D.h" | 11 #include "GraphicsContext3D.h" |
| 12 #include "cc/test/fake_web_graphics_context_3d.h" | 12 #include "cc/test/fake_web_graphics_context_3d.h" |
| 13 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 #include <wtf/RefPtr.h> | 15 #include <wtf/RefPtr.h> |
| 16 | 16 |
| 17 using namespace cc; | 17 using namespace cc; |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 EXPECT_EQ(1, uploader->numBlockingUploads()); | 100 EXPECT_EQ(1, uploader->numBlockingUploads()); |
| 101 | 101 |
| 102 fakeContext->setResultAvailable(1); | 102 fakeContext->setResultAvailable(1); |
| 103 EXPECT_EQ(0, uploader->numBlockingUploads()); | 103 EXPECT_EQ(0, uploader->numBlockingUploads()); |
| 104 uploader->uploadTexture(NULL, upload); | 104 uploader->uploadTexture(NULL, upload); |
| 105 uploader->markPendingUploadsAsNonBlocking(); | 105 uploader->markPendingUploadsAsNonBlocking(); |
| 106 EXPECT_EQ(0, uploader->numBlockingUploads()); | 106 EXPECT_EQ(0, uploader->numBlockingUploads()); |
| 107 } | 107 } |
| 108 | 108 |
| 109 } // namespace | 109 } // namespace |
| OLD | NEW |