| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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 ImageLayerChromium_h | 5 #ifndef ImageLayerChromium_h |
| 6 #define ImageLayerChromium_h | 6 #define ImageLayerChromium_h |
| 7 | 7 |
| 8 #include "cc/content_layer.h" | 8 #include "cc/content_layer.h" |
| 9 #include "third_party/skia/include/core/SkBitmap.h" | 9 #include "third_party/skia/include/core/SkBitmap.h" |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 void setBitmap(const SkBitmap& image); | 26 void setBitmap(const SkBitmap& image); |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 ImageLayer(); | 29 ImageLayer(); |
| 30 virtual ~ImageLayer(); | 30 virtual ~ImageLayer(); |
| 31 | 31 |
| 32 void setTilingOption(TilingOption); | 32 void setTilingOption(TilingOption); |
| 33 | 33 |
| 34 virtual LayerUpdater* updater() const OVERRIDE; | 34 virtual LayerUpdater* updater() const OVERRIDE; |
| 35 virtual void createUpdaterIfNeeded() OVERRIDE; | 35 virtual void createUpdaterIfNeeded() OVERRIDE; |
| 36 virtual IntSize contentBounds() const OVERRIDE; | 36 virtual gfx::Size contentBounds() const OVERRIDE; |
| 37 | 37 |
| 38 SkBitmap m_bitmap; | 38 SkBitmap m_bitmap; |
| 39 | 39 |
| 40 scoped_refptr<ImageLayerUpdater> m_updater; | 40 scoped_refptr<ImageLayerUpdater> m_updater; |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 } // namespace cc | 43 } // namespace cc |
| 44 | 44 |
| 45 #endif | 45 #endif |
| OLD | NEW |