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

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

Issue 952893003: Update from https://crrev.com/317530 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix gn for nacl Created 5 years, 10 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 | « cc/input/scroll_elasticity_helper.cc ('k') | cc/layers/content_layer.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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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_CONTENT_LAYER_H_ 5 #ifndef CC_LAYERS_CONTENT_LAYER_H_
6 #define CC_LAYERS_CONTENT_LAYER_H_ 6 #define CC_LAYERS_CONTENT_LAYER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "cc/layers/tiled_layer.h" 10 #include "cc/layers/tiled_layer.h"
(...skipping 28 matching lines...) Expand all
39 void ClearClient(); 39 void ClearClient();
40 40
41 void SetLayerTreeHost(LayerTreeHost* layer_tree_host) override; 41 void SetLayerTreeHost(LayerTreeHost* layer_tree_host) override;
42 void SetTexturePriorities(const PriorityCalculator& priority_calc) override; 42 void SetTexturePriorities(const PriorityCalculator& priority_calc) override;
43 bool Update(ResourceUpdateQueue* queue, 43 bool Update(ResourceUpdateQueue* queue,
44 const OcclusionTracker<Layer>* occlusion) override; 44 const OcclusionTracker<Layer>* occlusion) override;
45 bool NeedMoreUpdates() override; 45 bool NeedMoreUpdates() override;
46 46
47 void SetContentsOpaque(bool contents_opaque) override; 47 void SetContentsOpaque(bool contents_opaque) override;
48 48
49 bool SupportsLCDText() const override;
50
51 skia::RefPtr<SkPicture> GetPicture() const override; 49 skia::RefPtr<SkPicture> GetPicture() const override;
52 50
53 void OnOutputSurfaceCreated() override; 51 void OnOutputSurfaceCreated() override;
54 52
55 protected: 53 protected:
56 explicit ContentLayer(ContentLayerClient* client); 54 explicit ContentLayer(ContentLayerClient* client);
57 ~ContentLayer() override; 55 ~ContentLayer() override;
58 56
59 bool HasDrawableContent() const override; 57 bool HasDrawableContent() const override;
60 58
61 // TiledLayer implementation. 59 // TiledLayer implementation.
62 LayerUpdater* Updater() const override; 60 LayerUpdater* Updater() const override;
63 61
64 private: 62 private:
65 // TiledLayer implementation. 63 // TiledLayer implementation.
66 void CreateUpdaterIfNeeded() override; 64 void CreateUpdaterIfNeeded() override;
67 65
68 ContentLayerClient* client_; 66 ContentLayerClient* client_;
69 scoped_refptr<ContentLayerUpdater> updater_; 67 scoped_refptr<ContentLayerUpdater> updater_;
70 68
71 DISALLOW_COPY_AND_ASSIGN(ContentLayer); 69 DISALLOW_COPY_AND_ASSIGN(ContentLayer);
72 }; 70 };
73 71
74 } // namespace cc 72 } // namespace cc
75 #endif // CC_LAYERS_CONTENT_LAYER_H_ 73 #endif // CC_LAYERS_CONTENT_LAYER_H_
OLDNEW
« no previous file with comments | « cc/input/scroll_elasticity_helper.cc ('k') | cc/layers/content_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698