| 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 CC_LAYERS_CONTENT_LAYER_H_ | 5 #ifndef CC_LAYERS_CONTENT_LAYER_H_ |
| 6 #define CC_LAYERS_CONTENT_LAYER_H_ | 6 #define CC_LAYERS_CONTENT_LAYER_H_ |
| 7 | 7 |
| 8 #include <string> |
| 9 |
| 8 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 9 #include "cc/base/cc_export.h" | 11 #include "cc/base/cc_export.h" |
| 10 #include "cc/layers/tiled_layer.h" | 12 #include "cc/layers/tiled_layer.h" |
| 11 #include "cc/resources/layer_painter.h" | 13 #include "cc/resources/layer_painter.h" |
| 12 | 14 |
| 13 class SkCanvas; | 15 class SkCanvas; |
| 14 | 16 |
| 15 namespace cc { | 17 namespace cc { |
| 16 | 18 |
| 17 class ContentLayerClient; | 19 class ContentLayerClient; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 45 OVERRIDE; | 47 OVERRIDE; |
| 46 virtual void Update(ResourceUpdateQueue* queue, | 48 virtual void Update(ResourceUpdateQueue* queue, |
| 47 const OcclusionTracker* occlusion, | 49 const OcclusionTracker* occlusion, |
| 48 RenderingStats* stats) OVERRIDE; | 50 RenderingStats* stats) OVERRIDE; |
| 49 virtual bool NeedMoreUpdates() OVERRIDE; | 51 virtual bool NeedMoreUpdates() OVERRIDE; |
| 50 | 52 |
| 51 virtual void SetContentsOpaque(bool contents_opaque) OVERRIDE; | 53 virtual void SetContentsOpaque(bool contents_opaque) OVERRIDE; |
| 52 | 54 |
| 53 virtual bool SupportsLCDText() const OVERRIDE; | 55 virtual bool SupportsLCDText() const OVERRIDE; |
| 54 | 56 |
| 57 virtual std::string DebugName() OVERRIDE; |
| 58 |
| 55 protected: | 59 protected: |
| 56 explicit ContentLayer(ContentLayerClient* client); | 60 explicit ContentLayer(ContentLayerClient* client); |
| 57 virtual ~ContentLayer(); | 61 virtual ~ContentLayer(); |
| 58 | 62 |
| 59 private: | 63 private: |
| 60 // TiledLayer implementation. | 64 // TiledLayer implementation. |
| 61 virtual LayerUpdater* Updater() const OVERRIDE; | 65 virtual LayerUpdater* Updater() const OVERRIDE; |
| 62 virtual void CreateUpdaterIfNeeded() OVERRIDE; | 66 virtual void CreateUpdaterIfNeeded() OVERRIDE; |
| 63 | 67 |
| 64 void UpdateCanUseLCDText(); | 68 void UpdateCanUseLCDText(); |
| 65 | 69 |
| 66 ContentLayerClient* client_; | 70 ContentLayerClient* client_; |
| 67 scoped_refptr<LayerUpdater> updater_; | 71 scoped_refptr<LayerUpdater> updater_; |
| 68 bool can_use_lcd_text_last_frame_; | 72 bool can_use_lcd_text_last_frame_; |
| 69 | 73 |
| 70 DISALLOW_COPY_AND_ASSIGN(ContentLayer); | 74 DISALLOW_COPY_AND_ASSIGN(ContentLayer); |
| 71 }; | 75 }; |
| 72 | 76 |
| 73 } // namespace cc | 77 } // namespace cc |
| 74 #endif // CC_LAYERS_CONTENT_LAYER_H_ | 78 #endif // CC_LAYERS_CONTENT_LAYER_H_ |
| OLD | NEW |