| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "core/paint/VideoPainter.h" | 5 #include "core/paint/VideoPainter.h" |
| 6 | 6 |
| 7 #include "core/frame/FrameView.h" | 7 #include "core/frame/FrameView.h" |
| 8 #include "core/frame/Settings.h" | 8 #include "core/frame/Settings.h" |
| 9 #include "core/html/HTMLMediaElement.h" | 9 #include "core/html/HTMLMediaElement.h" |
| 10 #include "core/loader/EmptyClients.h" | 10 #include "core/loader/EmptyClients.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 bool didLoadingProgress() override { return false; } | 62 bool didLoadingProgress() override { return false; } |
| 63 bool hasSingleSecurityOrigin() const override { return true; } | 63 bool hasSingleSecurityOrigin() const override { return true; } |
| 64 bool didPassCORSAccessCheck() const override { return true; } | 64 bool didPassCORSAccessCheck() const override { return true; } |
| 65 double mediaTimeForTimeValue(double timeValue) const override { | 65 double mediaTimeForTimeValue(double timeValue) const override { |
| 66 return timeValue; | 66 return timeValue; |
| 67 } | 67 } |
| 68 unsigned decodedFrameCount() const override { return 0; } | 68 unsigned decodedFrameCount() const override { return 0; } |
| 69 unsigned droppedFrameCount() const override { return 0; } | 69 unsigned droppedFrameCount() const override { return 0; } |
| 70 size_t audioDecodedByteCount() const override { return 0; } | 70 size_t audioDecodedByteCount() const override { return 0; } |
| 71 size_t videoDecodedByteCount() const override { return 0; } | 71 size_t videoDecodedByteCount() const override { return 0; } |
| 72 void paint(WebCanvas*, const WebRect&, SkPaint&) override {} | 72 void paint(WebCanvas*, const WebRect&, CdlPaint&) override {} |
| 73 | 73 |
| 74 private: | 74 private: |
| 75 WebMediaPlayerClient* m_client; | 75 WebMediaPlayerClient* m_client; |
| 76 std::unique_ptr<WebLayer> m_webLayer; | 76 std::unique_ptr<WebLayer> m_webLayer; |
| 77 NetworkState m_networkState = NetworkStateEmpty; | 77 NetworkState m_networkState = NetworkStateEmpty; |
| 78 ReadyState m_readyState = ReadyStateHaveNothing; | 78 ReadyState m_readyState = ReadyStateHaveNothing; |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 class StubFrameLoaderClient : public EmptyFrameLoaderClient { | 81 class StubFrameLoaderClient : public EmptyFrameLoaderClient { |
| 82 public: | 82 public: |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 StubWebMediaPlayer* player = | 137 StubWebMediaPlayer* player = |
| 138 static_cast<StubWebMediaPlayer*>(element->webMediaPlayer()); | 138 static_cast<StubWebMediaPlayer*>(element->webMediaPlayer()); |
| 139 const WebLayer* layer = player->getWebLayer(); | 139 const WebLayer* layer = player->getWebLayer(); |
| 140 ASSERT_TRUE(layer); | 140 ASSERT_TRUE(layer); |
| 141 EXPECT_TRUE(hasLayerAttached(*layer)); | 141 EXPECT_TRUE(hasLayerAttached(*layer)); |
| 142 EXPECT_EQ(WebSize(300, 200), layer->bounds()); | 142 EXPECT_EQ(WebSize(300, 200), layer->bounds()); |
| 143 } | 143 } |
| 144 | 144 |
| 145 } // namespace | 145 } // namespace |
| 146 } // namespace blink | 146 } // namespace blink |
| OLD | NEW |