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

Unified Diff: cc/layers/picture_layer_impl.h

Issue 2094813003: cc: Merge PictureImageLayerImpl and PictureLayerImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: borders Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/picture_image_layer_impl_unittest.cc ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl.h
diff --git a/cc/layers/picture_layer_impl.h b/cc/layers/picture_layer_impl.h
index f9637bf744e8c07e060e069a3f2199d694aae554..f6a65242bf87195c61f8e5eac4ebc00f4b337abd 100644
--- a/cc/layers/picture_layer_impl.h
+++ b/cc/layers/picture_layer_impl.h
@@ -92,14 +92,18 @@ class CC_EXPORT PictureLayerImpl
// Used for benchmarking
RasterSource* GetRasterSource() const { return raster_source_.get(); }
+ void set_is_directly_composited_image(bool is_directly_composited_image) {
+ is_directly_composited_image_ = is_directly_composited_image;
+ }
+
protected:
PictureLayerImpl(LayerTreeImpl* tree_impl, int id, bool is_mask);
PictureLayerTiling* AddTiling(float contents_scale);
void RemoveAllTilings();
void AddTilingsForRasterScale();
void AddLowResolutionTilingIfNeeded();
- virtual bool ShouldAdjustRasterScale() const;
- virtual void RecalculateRasterScales();
+ bool ShouldAdjustRasterScale() const;
+ void RecalculateRasterScales();
void CleanUpTilingsOnActiveLayer(
const std::vector<PictureLayerTiling*>& used_tilings);
float MinimumContentsScale() const;
@@ -116,7 +120,7 @@ class CC_EXPORT PictureLayerImpl
std::vector<PrioritizedTile>* prioritized_tiles) const override;
void AsValueInto(base::trace_event::TracedValue* dict) const override;
- virtual void UpdateIdealScales();
+ void UpdateIdealScales();
float MaximumTilingContentsScale() const;
std::unique_ptr<PictureLayerTilingSet> CreatePictureLayerTilingSet();
@@ -142,6 +146,7 @@ class CC_EXPORT PictureLayerImpl
const bool is_mask_;
bool nearest_neighbor_;
+ bool is_directly_composited_image_;
// Use this instead of |visible_layer_rect()| for tiling calculations. This
// takes external viewport and transform for tile priority into account.
« no previous file with comments | « cc/layers/picture_image_layer_impl_unittest.cc ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698