Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / cc / resources / tile.h
index 5e1ce5a..04367fd 100644 (file)
@@ -67,6 +67,9 @@ class CC_EXPORT Tile : public RefCountedManaged<Tile> {
 
   bool is_occluded(WhichTree tree) const { return is_occluded_[tree]; }
 
+  void set_shared(bool is_shared) { is_shared_ = is_shared; }
+  bool is_shared() const { return is_shared_; }
+
   bool is_occluded_for_tree_priority(TreePriority tree_priority) const {
     switch (tree_priority) {
       case SMOOTHNESS_TAKES_PRIORITY:
@@ -121,7 +124,6 @@ class CC_EXPORT Tile : public RefCountedManaged<Tile> {
     return managed_state_.tile_versions[HIGH_QUALITY_RASTER_MODE];
   }
 
-  gfx::Rect opaque_rect() const { return opaque_rect_; }
   float contents_scale() const { return contents_scale_; }
   gfx::Rect content_rect() const { return content_rect_; }
 
@@ -164,7 +166,6 @@ class CC_EXPORT Tile : public RefCountedManaged<Tile> {
        PicturePileImpl* picture_pile,
        const gfx::Size& tile_size,
        const gfx::Rect& content_rect,
-       const gfx::Rect& opaque_rect,
        float contents_scale,
        int layer_id,
        int source_frame_number,
@@ -182,7 +183,6 @@ class CC_EXPORT Tile : public RefCountedManaged<Tile> {
   gfx::Size size_;
   gfx::Rect content_rect_;
   float contents_scale_;
-  gfx::Rect opaque_rect_;
   bool is_occluded_[NUM_TREES];
 
   TilePriority priority_[NUM_TREES];
@@ -190,6 +190,7 @@ class CC_EXPORT Tile : public RefCountedManaged<Tile> {
   int layer_id_;
   int source_frame_number_;
   int flags_;
+  bool is_shared_;
 
   Id id_;
   static Id s_next_id_;