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

Side by Side Diff: cc/layers/heads_up_display_layer.h

Issue 2503283002: cc: Cleanup class/struct forward declarations (Closed)
Patch Set: Add missing fwd class decl in blimp_embedder_compositor.h 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
« no previous file with comments | « cc/ipc/cc_param_traits.h ('k') | cc/layers/heads_up_display_layer_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 CC_LAYERS_HEADS_UP_DISPLAY_LAYER_H_ 5 #ifndef CC_LAYERS_HEADS_UP_DISPLAY_LAYER_H_
6 #define CC_LAYERS_HEADS_UP_DISPLAY_LAYER_H_ 6 #define CC_LAYERS_HEADS_UP_DISPLAY_LAYER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "cc/base/cc_export.h" 12 #include "cc/base/cc_export.h"
13 #include "cc/layers/layer.h" 13 #include "cc/layers/layer.h"
14 #include "third_party/skia/include/core/SkRefCnt.h" 14 #include "third_party/skia/include/core/SkRefCnt.h"
15 #include "third_party/skia/include/core/SkTypeface.h" 15 #include "third_party/skia/include/core/SkTypeface.h"
16 16
17 namespace cc { 17 namespace cc {
18 18
19 namespace proto {
20 class LayerNode;
21 } // namespace proto
22
23 class CC_EXPORT HeadsUpDisplayLayer : public Layer { 19 class CC_EXPORT HeadsUpDisplayLayer : public Layer {
24 public: 20 public:
25 static scoped_refptr<HeadsUpDisplayLayer> Create(); 21 static scoped_refptr<HeadsUpDisplayLayer> Create();
26 22
27 void PrepareForCalculateDrawProperties( 23 void PrepareForCalculateDrawProperties(
28 const gfx::Size& device_viewport, float device_scale_factor); 24 const gfx::Size& device_viewport, float device_scale_factor);
29 25
30 std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; 26 std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
31 27
32 // Layer overrides. 28 // Layer overrides.
33 void PushPropertiesTo(LayerImpl* layer) override; 29 void PushPropertiesTo(LayerImpl* layer) override;
34 30
35 protected: 31 protected:
36 HeadsUpDisplayLayer(); 32 HeadsUpDisplayLayer();
37 bool HasDrawableContent() const override; 33 bool HasDrawableContent() const override;
38 34
39 private: 35 private:
40 ~HeadsUpDisplayLayer() override; 36 ~HeadsUpDisplayLayer() override;
41 37
42 sk_sp<SkTypeface> typeface_; 38 sk_sp<SkTypeface> typeface_;
43 39
44 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayer); 40 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayer);
45 }; 41 };
46 42
47 } // namespace cc 43 } // namespace cc
48 44
49 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_H_ 45 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_H_
OLDNEW
« no previous file with comments | « cc/ipc/cc_param_traits.h ('k') | cc/layers/heads_up_display_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698