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

Side by Side Diff: third_party/WebKit/Source/core/paint/VideoPainterTest.cpp

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: Clean up comments, fix mac build Created 3 years, 11 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 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 bool didLoadingProgress() override { return false; } 63 bool didLoadingProgress() override { return false; }
64 bool hasSingleSecurityOrigin() const override { return true; } 64 bool hasSingleSecurityOrigin() const override { return true; }
65 bool didPassCORSAccessCheck() const override { return true; } 65 bool didPassCORSAccessCheck() const override { return true; }
66 double mediaTimeForTimeValue(double timeValue) const override { 66 double mediaTimeForTimeValue(double timeValue) const override {
67 return timeValue; 67 return timeValue;
68 } 68 }
69 unsigned decodedFrameCount() const override { return 0; } 69 unsigned decodedFrameCount() const override { return 0; }
70 unsigned droppedFrameCount() const override { return 0; } 70 unsigned droppedFrameCount() const override { return 0; }
71 size_t audioDecodedByteCount() const override { return 0; } 71 size_t audioDecodedByteCount() const override { return 0; }
72 size_t videoDecodedByteCount() const override { return 0; } 72 size_t videoDecodedByteCount() const override { return 0; }
73 void paint(WebCanvas*, const WebRect&, SkPaint&) override {} 73 void paint(WebCanvas*, const WebRect&, PaintFlags&) override {}
74 74
75 private: 75 private:
76 WebMediaPlayerClient* m_client; 76 WebMediaPlayerClient* m_client;
77 std::unique_ptr<WebLayer> m_webLayer; 77 std::unique_ptr<WebLayer> m_webLayer;
78 NetworkState m_networkState = NetworkStateEmpty; 78 NetworkState m_networkState = NetworkStateEmpty;
79 ReadyState m_readyState = ReadyStateHaveNothing; 79 ReadyState m_readyState = ReadyStateHaveNothing;
80 }; 80 };
81 81
82 class StubFrameLoaderClient : public EmptyFrameLoaderClient { 82 class StubFrameLoaderClient : public EmptyFrameLoaderClient {
83 public: 83 public:
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 StubWebMediaPlayer* player = 138 StubWebMediaPlayer* player =
139 static_cast<StubWebMediaPlayer*>(element->webMediaPlayer()); 139 static_cast<StubWebMediaPlayer*>(element->webMediaPlayer());
140 const WebLayer* layer = player->getWebLayer(); 140 const WebLayer* layer = player->getWebLayer();
141 ASSERT_TRUE(layer); 141 ASSERT_TRUE(layer);
142 EXPECT_TRUE(hasLayerAttached(*layer)); 142 EXPECT_TRUE(hasLayerAttached(*layer));
143 EXPECT_EQ(WebSize(300, 200), layer->bounds()); 143 EXPECT_EQ(WebSize(300, 200), layer->bounds());
144 } 144 }
145 145
146 } // namespace 146 } // namespace
147 } // namespace blink 147 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698