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

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

Issue 951673002: Revert "Pull chromium at 2c3ffb2355a27c32f45e508ef861416b820c823b" (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
49 skia::RefPtr<SkPicture> GetPicture() const override; 51 skia::RefPtr<SkPicture> GetPicture() const override;
50 52
51 void OnOutputSurfaceCreated() override; 53 void OnOutputSurfaceCreated() override;
52 54
53 protected: 55 protected:
54 explicit ContentLayer(ContentLayerClient* client); 56 explicit ContentLayer(ContentLayerClient* client);
55 ~ContentLayer() override; 57 ~ContentLayer() override;
56 58
57 bool HasDrawableContent() const override; 59 bool HasDrawableContent() const override;
58 60
59 // TiledLayer implementation. 61 // TiledLayer implementation.
60 LayerUpdater* Updater() const override; 62 LayerUpdater* Updater() const override;
61 63
62 private: 64 private:
63 // TiledLayer implementation. 65 // TiledLayer implementation.
64 void CreateUpdaterIfNeeded() override; 66 void CreateUpdaterIfNeeded() override;
65 67
66 ContentLayerClient* client_; 68 ContentLayerClient* client_;
67 scoped_refptr<ContentLayerUpdater> updater_; 69 scoped_refptr<ContentLayerUpdater> updater_;
68 70
69 DISALLOW_COPY_AND_ASSIGN(ContentLayer); 71 DISALLOW_COPY_AND_ASSIGN(ContentLayer);
70 }; 72 };
71 73
72 } // namespace cc 74 } // namespace cc
73 #endif // CC_LAYERS_CONTENT_LAYER_H_ 75 #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