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

Side by Side Diff: Source/platform/graphics/paint/DrawingDisplayItem.h

Issue 723103002: Revert "Move ViewDisplayList to GraphicsLayer" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef DrawingDisplayItem_h
6 #define DrawingDisplayItem_h
7
8 #include "platform/PlatformExport.h"
9 #include "platform/geometry/FloatPoint.h"
10 #include "platform/graphics/paint/DisplayItem.h"
11 #include "third_party/skia/include/core/SkPicture.h"
12
13 namespace blink {
14
15 class PLATFORM_EXPORT DrawingDisplayItem : public DisplayItem {
16 public:
17 DrawingDisplayItem(DisplayItemClient client, Type type, PassRefPtr<SkPicture > picture, const FloatPoint& location)
18 : DisplayItem(client, type), m_picture(picture), m_location(location) { }
19
20 PassRefPtr<SkPicture> picture() const { return m_picture; }
21 const FloatPoint& location() const { return m_location; }
22
23 private:
24 virtual void replay(GraphicsContext*);
25
26 RefPtr<SkPicture> m_picture;
27 const FloatPoint m_location;
28 #ifndef NDEBUG
29 virtual WTF::String asDebugString() const override;
30 #endif
31 };
32
33 } // namespace blink
34
35 #endif // DrawingDisplayItem_h
OLDNEW
« no previous file with comments | « Source/platform/graphics/paint/DisplayItemList.cpp ('k') | Source/platform/graphics/paint/DrawingDisplayItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698