OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_RESOURCES_CONTENT_LAYER_UPDATER_H_ | 5 #ifndef CC_RESOURCES_CONTENT_LAYER_UPDATER_H_ |
6 #define CC_RESOURCES_CONTENT_LAYER_UPDATER_H_ | 6 #define CC_RESOURCES_CONTENT_LAYER_UPDATER_H_ |
7 | 7 |
8 #include "cc/base/cc_export.h" | 8 #include "cc/base/cc_export.h" |
9 #include "cc/resources/layer_updater.h" | 9 #include "cc/resources/layer_updater.h" |
10 #include "ui/gfx/rect.h" | 10 #include "ui/gfx/rect.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 protected: | 26 protected: |
27 ContentLayerUpdater(scoped_ptr<LayerPainter> painter, | 27 ContentLayerUpdater(scoped_ptr<LayerPainter> painter, |
28 RenderingStatsInstrumentation* stats_instrumentation, | 28 RenderingStatsInstrumentation* stats_instrumentation, |
29 int layer_id); | 29 int layer_id); |
30 virtual ~ContentLayerUpdater(); | 30 virtual ~ContentLayerUpdater(); |
31 | 31 |
32 void PaintContents(SkCanvas* canvas, | 32 void PaintContents(SkCanvas* canvas, |
33 gfx::Rect content_rect, | 33 gfx::Rect content_rect, |
34 float contents_width_scale, | 34 float contents_width_scale, |
35 float contents_height_scale, | 35 float contents_height_scale, |
36 gfx::Rect* resulting_opaque_rect, | 36 gfx::Rect* resulting_opaque_rect); |
37 RenderingStats* stats); | |
38 gfx::Rect content_rect() const { return content_rect_; } | 37 gfx::Rect content_rect() const { return content_rect_; } |
39 | 38 |
40 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 39 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
41 int layer_id_; | 40 int layer_id_; |
42 | 41 |
43 private: | 42 private: |
44 gfx::Rect content_rect_; | 43 gfx::Rect content_rect_; |
45 scoped_ptr<LayerPainter> painter_; | 44 scoped_ptr<LayerPainter> painter_; |
46 | 45 |
47 DISALLOW_COPY_AND_ASSIGN(ContentLayerUpdater); | 46 DISALLOW_COPY_AND_ASSIGN(ContentLayerUpdater); |
48 }; | 47 }; |
49 | 48 |
50 } // namespace cc | 49 } // namespace cc |
51 | 50 |
52 #endif // CC_RESOURCES_CONTENT_LAYER_UPDATER_H_ | 51 #endif // CC_RESOURCES_CONTENT_LAYER_UPDATER_H_ |
OLD | NEW |