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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.h

Issue 2466383004: blink: Cleanup class forward declarations (Closed)
Patch Set: Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 14 matching lines...) Expand all
25 25
26 #ifndef ContentLayerDelegate_h 26 #ifndef ContentLayerDelegate_h
27 #define ContentLayerDelegate_h 27 #define ContentLayerDelegate_h
28 28
29 #include "platform/PlatformExport.h" 29 #include "platform/PlatformExport.h"
30 #include "platform/geometry/IntSize.h" 30 #include "platform/geometry/IntSize.h"
31 #include "public/platform/WebContentLayerClient.h" 31 #include "public/platform/WebContentLayerClient.h"
32 #include "wtf/Allocator.h" 32 #include "wtf/Allocator.h"
33 #include "wtf/Noncopyable.h" 33 #include "wtf/Noncopyable.h"
34 34
35 class SkCanvas;
36
37 namespace gfx { 35 namespace gfx {
38 class Rect; 36 class Rect;
39 } 37 }
40 38
41 namespace blink { 39 namespace blink {
42 40
43 class IntRect;
44 class GraphicsLayer; 41 class GraphicsLayer;
45 42
46 class PLATFORM_EXPORT ContentLayerDelegate : public WebContentLayerClient { 43 class PLATFORM_EXPORT ContentLayerDelegate : public WebContentLayerClient {
47 WTF_MAKE_NONCOPYABLE(ContentLayerDelegate); 44 WTF_MAKE_NONCOPYABLE(ContentLayerDelegate);
48 USING_FAST_MALLOC(ContentLayerDelegate); 45 USING_FAST_MALLOC(ContentLayerDelegate);
49 46
50 public: 47 public:
51 explicit ContentLayerDelegate(GraphicsLayer*); 48 explicit ContentLayerDelegate(GraphicsLayer*);
52 ~ContentLayerDelegate() override; 49 ~ContentLayerDelegate() override;
53 50
54 gfx::Rect paintableRegion() override; 51 gfx::Rect paintableRegion() override;
55 52
56 // WebContentLayerClient implementation. 53 // WebContentLayerClient implementation.
57 void paintContents(WebDisplayItemList*, 54 void paintContents(WebDisplayItemList*,
58 WebContentLayerClient::PaintingControlSetting = 55 WebContentLayerClient::PaintingControlSetting =
59 PaintDefaultBehavior) override; 56 PaintDefaultBehavior) override;
60 size_t approximateUnsharedMemoryUsage() const override; 57 size_t approximateUnsharedMemoryUsage() const override;
61 58
62 private: 59 private:
63 GraphicsLayer* m_graphicsLayer; 60 GraphicsLayer* m_graphicsLayer;
64 }; 61 };
65 62
66 } // namespace blink 63 } // namespace blink
67 64
68 #endif // ContentLayerDelegate_h 65 #endif // ContentLayerDelegate_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698