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 | |
6 #ifndef BitmapSkPictureCanvasLayerTextureUpdater_h | 5 #ifndef BitmapSkPictureCanvasLayerTextureUpdater_h |
7 #define BitmapSkPictureCanvasLayerTextureUpdater_h | 6 #define BitmapSkPictureCanvasLayerTextureUpdater_h |
8 | 7 |
| 8 #include "cc/skpicture_canvas_layer_texture_updater.h" |
9 #include "third_party/skia/include/core/SkBitmap.h" | 9 #include "third_party/skia/include/core/SkBitmap.h" |
10 #include "SkPictureCanvasLayerTextureUpdater.h" | |
11 | 10 |
12 namespace cc { | 11 namespace cc { |
13 | 12 |
14 // This class records the contentRect into an SkPicture, then software rasterize
s | 13 // This class records the contentRect into an SkPicture, then software rasterize
s |
15 // the SkPicture into bitmaps for each tile. This implements CCSettings::perTile
Painting. | 14 // the SkPicture into bitmaps for each tile. This implements CCSettings::perTile
Painting. |
16 class BitmapSkPictureCanvasLayerTextureUpdater : public SkPictureCanvasLayerText
ureUpdater { | 15 class BitmapSkPictureCanvasLayerTextureUpdater : public SkPictureCanvasLayerText
ureUpdater { |
17 public: | 16 public: |
18 class Texture : public CanvasLayerTextureUpdater::Texture { | 17 class Texture : public CanvasLayerTextureUpdater::Texture { |
19 public: | 18 public: |
20 Texture(BitmapSkPictureCanvasLayerTextureUpdater*, scoped_ptr<CCPrioriti
zedTexture>); | 19 Texture(BitmapSkPictureCanvasLayerTextureUpdater*, scoped_ptr<CCPrioriti
zedTexture>); |
(...skipping 14 matching lines...) Expand all Loading... |
35 virtual SampledTexelFormat sampledTexelFormat(GC3Denum textureFormat) OVERRI
DE; | 34 virtual SampledTexelFormat sampledTexelFormat(GC3Denum textureFormat) OVERRI
DE; |
36 void paintContentsRect(SkCanvas*, const IntRect& sourceRect, CCRenderingStat
s&); | 35 void paintContentsRect(SkCanvas*, const IntRect& sourceRect, CCRenderingStat
s&); |
37 | 36 |
38 private: | 37 private: |
39 explicit BitmapSkPictureCanvasLayerTextureUpdater(scoped_ptr<LayerPainterChr
omium>); | 38 explicit BitmapSkPictureCanvasLayerTextureUpdater(scoped_ptr<LayerPainterChr
omium>); |
40 }; | 39 }; |
41 | 40 |
42 } // namespace cc | 41 } // namespace cc |
43 | 42 |
44 #endif // BitmapSkPictureCanvasLayerTextureUpdater_h | 43 #endif // BitmapSkPictureCanvasLayerTextureUpdater_h |
OLD | NEW |