| OLD | NEW | 
|    1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2012 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 UI_COMPOSITOR_LAYER_H_ |    5 #ifndef UI_COMPOSITOR_LAYER_H_ | 
|    6 #define UI_COMPOSITOR_LAYER_H_ |    6 #define UI_COMPOSITOR_LAYER_H_ | 
|    7  |    7  | 
|    8 #include <string> |    8 #include <string> | 
|    9 #include <vector> |    9 #include <vector> | 
|   10  |   10  | 
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  341   void OnDeviceScaleFactorChanged(float device_scale_factor); |  341   void OnDeviceScaleFactorChanged(float device_scale_factor); | 
|  342  |  342  | 
|  343   // Notifies the layer that one of its children has received a new |  343   // Notifies the layer that one of its children has received a new | 
|  344   // delegated frame. |  344   // delegated frame. | 
|  345   void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip); |  345   void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip); | 
|  346  |  346  | 
|  347   // Requets a copy of the layer's output as a texture or bitmap. |  347   // Requets a copy of the layer's output as a texture or bitmap. | 
|  348   void RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request); |  348   void RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request); | 
|  349  |  349  | 
|  350   // ContentLayerClient |  350   // ContentLayerClient | 
|  351   void PaintContents( |  | 
|  352       SkCanvas* canvas, |  | 
|  353       const gfx::Rect& clip, |  | 
|  354       ContentLayerClient::PaintingControlSetting painting_control) override; |  | 
|  355   scoped_refptr<cc::DisplayItemList> PaintContentsToDisplayList( |  351   scoped_refptr<cc::DisplayItemList> PaintContentsToDisplayList( | 
|  356       const gfx::Rect& clip, |  352       const gfx::Rect& clip, | 
|  357       ContentLayerClient::PaintingControlSetting painting_control) override; |  353       ContentLayerClient::PaintingControlSetting painting_control) override; | 
|  358   bool FillsBoundsCompletely() const override; |  354   bool FillsBoundsCompletely() const override; | 
|  359   size_t GetApproximateUnsharedMemoryUsage() const override; |  355   size_t GetApproximateUnsharedMemoryUsage() const override; | 
|  360  |  356  | 
|  361   cc::Layer* cc_layer_for_testing() { return cc_layer_; } |  357   cc::Layer* cc_layer_for_testing() { return cc_layer_; } | 
|  362  |  358  | 
|  363   // TextureLayerClient |  359   // TextureLayerClient | 
|  364   bool PrepareTextureMailbox( |  360   bool PrepareTextureMailbox( | 
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  539   // The size of the frame or texture in DIP, set when SetShowDelegatedContent |  535   // The size of the frame or texture in DIP, set when SetShowDelegatedContent | 
|  540   // or SetTextureMailbox was called. |  536   // or SetTextureMailbox was called. | 
|  541   gfx::Size frame_size_in_dip_; |  537   gfx::Size frame_size_in_dip_; | 
|  542  |  538  | 
|  543   DISALLOW_COPY_AND_ASSIGN(Layer); |  539   DISALLOW_COPY_AND_ASSIGN(Layer); | 
|  544 }; |  540 }; | 
|  545  |  541  | 
|  546 }  // namespace ui |  542 }  // namespace ui | 
|  547  |  543  | 
|  548 #endif  // UI_COMPOSITOR_LAYER_H_ |  544 #endif  // UI_COMPOSITOR_LAYER_H_ | 
| OLD | NEW |