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_SKPICTURE_CONTENT_LAYER_UPDATER_H_ | 5 #ifndef CC_RESOURCES_SKPICTURE_CONTENT_LAYER_UPDATER_H_ |
6 #define CC_RESOURCES_SKPICTURE_CONTENT_LAYER_UPDATER_H_ | 6 #define CC_RESOURCES_SKPICTURE_CONTENT_LAYER_UPDATER_H_ |
7 | 7 |
8 #include "cc/resources/content_layer_updater.h" | 8 #include "cc/resources/content_layer_updater.h" |
9 #include "skia/ext/refptr.h" | 9 #include "skia/ext/refptr.h" |
10 #include "third_party/skia/include/core/SkPicture.h" | 10 #include "third_party/skia/include/core/SkPicture.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 protected: | 21 protected: |
22 SkPictureContentLayerUpdater( | 22 SkPictureContentLayerUpdater( |
23 scoped_ptr<LayerPainter> painter, | 23 scoped_ptr<LayerPainter> painter, |
24 RenderingStatsInstrumentation* stats_instrumentation, | 24 RenderingStatsInstrumentation* stats_instrumentation, |
25 int layer_id); | 25 int layer_id); |
26 virtual ~SkPictureContentLayerUpdater(); | 26 virtual ~SkPictureContentLayerUpdater(); |
27 | 27 |
28 virtual void PrepareToUpdate(const gfx::Rect& content_rect, | 28 virtual void PrepareToUpdate(const gfx::Rect& content_rect, |
29 const gfx::Size& tile_size, | 29 const gfx::Size& tile_size, |
30 float contents_width_scale, | 30 float contents_width_scale, |
31 float contents_height_scale, | 31 float contents_height_scale) OVERRIDE; |
32 gfx::Rect* resulting_opaque_rect) OVERRIDE; | |
33 void DrawPicture(SkCanvas* canvas); | 32 void DrawPicture(SkCanvas* canvas); |
34 | 33 |
35 private: | 34 private: |
36 skia::RefPtr<SkPicture> picture_; | 35 skia::RefPtr<SkPicture> picture_; |
37 | 36 |
38 DISALLOW_COPY_AND_ASSIGN(SkPictureContentLayerUpdater); | 37 DISALLOW_COPY_AND_ASSIGN(SkPictureContentLayerUpdater); |
39 }; | 38 }; |
40 | 39 |
41 } // namespace cc | 40 } // namespace cc |
42 | 41 |
43 #endif // CC_RESOURCES_SKPICTURE_CONTENT_LAYER_UPDATER_H_ | 42 #endif // CC_RESOURCES_SKPICTURE_CONTENT_LAYER_UPDATER_H_ |
OLD | NEW |