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

Unified Diff: cc/layers/picture_layer.h

Issue 2493523003: cc: Remove unused proto conversion code. (Closed)
Patch Set: test 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/layer_unittest.cc ('k') | cc/layers/picture_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer.h
diff --git a/cc/layers/picture_layer.h b/cc/layers/picture_layer.h
index 1aa5303c48dd83dbefc50d8d6cf4bb640d7af634..4eff9f5afa34b47d08c75c2882c8fc7b3fe967bc 100644
--- a/cc/layers/picture_layer.h
+++ b/cc/layers/picture_layer.h
@@ -29,6 +29,9 @@ class CC_EXPORT PictureLayer : public Layer {
void ClearClient();
void SetNearestNeighbor(bool nearest_neighbor);
+ bool nearest_neighbor() const {
+ return picture_layer_inputs_.nearest_neighbor;
+ }
// Layer interface.
std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
@@ -39,6 +42,9 @@ class CC_EXPORT PictureLayer : public Layer {
void SetIsMask(bool is_mask) override;
sk_sp<SkPicture> GetPicture() const override;
+ void SetTypeForProtoSerialization(proto::LayerNode* proto) const override;
+ void ToLayerPropertiesProto(proto::LayerProperties* proto) override;
+
bool IsSuitableForGpuRasterization() const override;
void RunMicroBenchmark(MicroBenchmark* benchmark) override;
@@ -71,11 +77,6 @@ class CC_EXPORT PictureLayer : public Layer {
~PictureLayer() override;
bool HasDrawableContent() const override;
- void SetTypeForProtoSerialization(proto::LayerNode* proto) const override;
- void LayerSpecificPropertiesToProto(proto::LayerProperties* proto,
- bool inputs_only) override;
- void FromLayerSpecificPropertiesProto(
- const proto::LayerProperties& proto) override;
bool is_mask() const { return is_mask_; }
« no previous file with comments | « cc/layers/layer_unittest.cc ('k') | cc/layers/picture_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698