| 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 | 5 |
| 6 #ifndef FrameBufferSkPictureCanvasLayerTextureUpdater_h | 6 #ifndef FrameBufferSkPictureCanvasLayerTextureUpdater_h |
| 7 #define FrameBufferSkPictureCanvasLayerTextureUpdater_h | 7 #define FrameBufferSkPictureCanvasLayerTextureUpdater_h |
| 8 | 8 |
| 9 #include "SkPictureCanvasLayerTextureUpdater.h" | 9 #include "cc/skpicture_canvas_layer_texture_updater.h" |
| 10 | 10 |
| 11 namespace cc { | 11 namespace cc { |
| 12 | 12 |
| 13 // This class records the contentRect into an SkPicture, then uses accelerated | 13 // This class records the contentRect into an SkPicture, then uses accelerated |
| 14 // drawing to update the texture. The accelerated drawing goes to an | 14 // drawing to update the texture. The accelerated drawing goes to an |
| 15 // intermediate framebuffer and then is copied to the destination texture once d
one. | 15 // intermediate framebuffer and then is copied to the destination texture once d
one. |
| 16 class FrameBufferSkPictureCanvasLayerTextureUpdater : public SkPictureCanvasLaye
rTextureUpdater { | 16 class FrameBufferSkPictureCanvasLayerTextureUpdater : public SkPictureCanvasLaye
rTextureUpdater { |
| 17 public: | 17 public: |
| 18 class Texture : public LayerTextureUpdater::Texture { | 18 class Texture : public LayerTextureUpdater::Texture { |
| 19 public: | 19 public: |
| (...skipping 12 matching lines...) Expand all Loading... |
| 32 virtual ~FrameBufferSkPictureCanvasLayerTextureUpdater(); | 32 virtual ~FrameBufferSkPictureCanvasLayerTextureUpdater(); |
| 33 | 33 |
| 34 virtual PassOwnPtr<LayerTextureUpdater::Texture> createTexture(CCPrioritized
TextureManager*) OVERRIDE; | 34 virtual PassOwnPtr<LayerTextureUpdater::Texture> createTexture(CCPrioritized
TextureManager*) OVERRIDE; |
| 35 virtual SampledTexelFormat sampledTexelFormat(GC3Denum textureFormat) OVERRI
DE; | 35 virtual SampledTexelFormat sampledTexelFormat(GC3Denum textureFormat) OVERRI
DE; |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 explicit FrameBufferSkPictureCanvasLayerTextureUpdater(scoped_ptr<LayerPaint
erChromium>); | 38 explicit FrameBufferSkPictureCanvasLayerTextureUpdater(scoped_ptr<LayerPaint
erChromium>); |
| 39 }; | 39 }; |
| 40 } // namespace cc | 40 } // namespace cc |
| 41 #endif // FrameBufferSkPictureCanvasLayerTextureUpdater_h | 41 #endif // FrameBufferSkPictureCanvasLayerTextureUpdater_h |
| OLD | NEW |