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

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

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again Created 3 years, 9 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
« no previous file with comments | « base/win/message_window.cc ('k') | cc/layers/empty_content_layer_client.cc » ('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 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 CC_LAYERS_EMPTY_CONTENT_LAYER_CLIENT_H_ 5 #ifndef CC_LAYERS_EMPTY_CONTENT_LAYER_CLIENT_H_
6 #define CC_LAYERS_EMPTY_CONTENT_LAYER_CLIENT_H_ 6 #define CC_LAYERS_EMPTY_CONTENT_LAYER_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 17 matching lines...) Expand all
28 static ContentLayerClient* GetInstance(); 28 static ContentLayerClient* GetInstance();
29 29
30 // ContentLayerClient implementation. 30 // ContentLayerClient implementation.
31 gfx::Rect PaintableRegion() override; 31 gfx::Rect PaintableRegion() override;
32 scoped_refptr<DisplayItemList> PaintContentsToDisplayList( 32 scoped_refptr<DisplayItemList> PaintContentsToDisplayList(
33 PaintingControlSetting painting_status) override; 33 PaintingControlSetting painting_status) override;
34 bool FillsBoundsCompletely() const override; 34 bool FillsBoundsCompletely() const override;
35 size_t GetApproximateUnsharedMemoryUsage() const override; 35 size_t GetApproximateUnsharedMemoryUsage() const override;
36 36
37 private: 37 private:
38 friend struct base::DefaultLazyInstanceTraits<EmptyContentLayerClient>; 38 friend struct base::LazyInstanceTraitsBase<EmptyContentLayerClient>;
39 39
40 EmptyContentLayerClient(); 40 EmptyContentLayerClient();
41 ~EmptyContentLayerClient() override; 41 ~EmptyContentLayerClient() override;
42 42
43 DISALLOW_COPY_AND_ASSIGN(EmptyContentLayerClient); 43 DISALLOW_COPY_AND_ASSIGN(EmptyContentLayerClient);
44 }; 44 };
45 45
46 } // namespace cc 46 } // namespace cc
47 47
48 #endif // CC_LAYERS_EMPTY_CONTENT_LAYER_CLIENT_H_ 48 #endif // CC_LAYERS_EMPTY_CONTENT_LAYER_CLIENT_H_
OLDNEW
« no previous file with comments | « base/win/message_window.cc ('k') | cc/layers/empty_content_layer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698