| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 CC_PICTURE_LAYER_IMPL_H_ | 5 #ifndef CC_PICTURE_LAYER_IMPL_H_ |
| 6 #define CC_PICTURE_LAYER_IMPL_H_ | 6 #define CC_PICTURE_LAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include "cc/layer_impl.h" | 8 #include "cc/layer_impl.h" |
| 9 #include "cc/picture_layer_tiling.h" | 9 #include "cc/picture_layer_tiling.h" |
| 10 #include "cc/picture_layer_tiling_set.h" | 10 #include "cc/picture_layer_tiling_set.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 return make_scoped_ptr(new PictureLayerImpl(treeImpl, id)); | 26 return make_scoped_ptr(new PictureLayerImpl(treeImpl, id)); |
| 27 } | 27 } |
| 28 virtual ~PictureLayerImpl(); | 28 virtual ~PictureLayerImpl(); |
| 29 | 29 |
| 30 // LayerImpl overrides. | 30 // LayerImpl overrides. |
| 31 virtual const char* layerTypeAsString() const OVERRIDE; | 31 virtual const char* layerTypeAsString() const OVERRIDE; |
| 32 virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE; | 32 virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE; |
| 33 virtual void dumpLayerProperties(std::string*, int indent) const OVERRIDE; | 33 virtual void dumpLayerProperties(std::string*, int indent) const OVERRIDE; |
| 34 virtual void didUpdateTransforms() OVERRIDE; | 34 virtual void didUpdateTransforms() OVERRIDE; |
| 35 virtual void didBecomeActive() OVERRIDE; | 35 virtual void didBecomeActive() OVERRIDE; |
| 36 virtual void didLoseOutputSurface() OVERRIDE; |
| 36 virtual void calculateContentsScale( | 37 virtual void calculateContentsScale( |
| 37 float ideal_contents_scale, | 38 float ideal_contents_scale, |
| 38 float* contents_scale_x, | 39 float* contents_scale_x, |
| 39 float* contents_scale_y, | 40 float* contents_scale_y, |
| 40 gfx::Size* content_bounds) OVERRIDE; | 41 gfx::Size* content_bounds) OVERRIDE; |
| 41 virtual skia::RefPtr<SkPicture> getPicture() OVERRIDE; | 42 virtual skia::RefPtr<SkPicture> getPicture() OVERRIDE; |
| 42 | 43 |
| 43 // PictureLayerTilingClient overrides. | 44 // PictureLayerTilingClient overrides. |
| 44 virtual scoped_refptr<Tile> CreateTile(PictureLayerTiling*, | 45 virtual scoped_refptr<Tile> CreateTile(PictureLayerTiling*, |
| 45 gfx::Rect) OVERRIDE; | 46 gfx::Rect) OVERRIDE; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 74 float ideal_contents_scale_; | 75 float ideal_contents_scale_; |
| 75 bool is_mask_; | 76 bool is_mask_; |
| 76 | 77 |
| 77 friend class PictureLayer; | 78 friend class PictureLayer; |
| 78 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 79 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 } | 82 } |
| 82 | 83 |
| 83 #endif // CC_PICTURE_LAYER_IMPL_H_ | 84 #endif // CC_PICTURE_LAYER_IMPL_H_ |
| OLD | NEW |