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

Side by Side Diff: third_party/WebKit/Source/web/tests/sim/SimDisplayItemList.h

Issue 2889653002: Remove cullRect() from PaintOpBuffer. (Closed)
Patch Set: movecullrect2 rebase-once-and-for-all Created 3 years, 7 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef SimDisplayItemList_h 5 #ifndef SimDisplayItemList_h
6 #define SimDisplayItemList_h 6 #define SimDisplayItemList_h
7 7
8 #include "platform/graphics/paint/PaintRecord.h" 8 #include "platform/graphics/paint/PaintRecord.h"
9 #include "platform/wtf/text/WTFString.h" 9 #include "platform/wtf/text/WTFString.h"
10 #include "public/platform/WebDisplayItemList.h" 10 #include "public/platform/WebDisplayItemList.h"
11 #include "web/tests/sim/SimCanvas.h" 11 #include "web/tests/sim/SimCanvas.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class SimDisplayItemList final : public WebDisplayItemList { 15 class SimDisplayItemList final : public WebDisplayItemList {
16 public: 16 public:
17 SimDisplayItemList(); 17 SimDisplayItemList();
18 18
19 void AppendDrawingItem(const WebRect&, sk_sp<const PaintRecord>) override; 19 void AppendDrawingItem(const WebRect& visual_rect,
20 sk_sp<const PaintRecord>,
21 const WebRect& record_bounds) override;
20 22
21 int DrawCount() const { return commands_.size(); } 23 int DrawCount() const { return commands_.size(); }
22 24
23 bool Contains(SimCanvas::CommandType, 25 bool Contains(SimCanvas::CommandType,
24 const String& color_string = String()) const; 26 const String& color_string = String()) const;
25 27
26 private: 28 private:
27 Vector<SimCanvas::Command> commands_; 29 Vector<SimCanvas::Command> commands_;
28 }; 30 };
29 31
30 } // namespace blink 32 } // namespace blink
31 33
32 #endif 34 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698