| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
| 10 #include "cc/layers/tiled_layer.h" | 10 #include "cc/layers/tiled_layer.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 public: | 38 public: |
| 39 static scoped_refptr<ContentLayer> Create(ContentLayerClient* client); | 39 static scoped_refptr<ContentLayer> Create(ContentLayerClient* client); |
| 40 | 40 |
| 41 void ClearClient() { client_ = NULL; } | 41 void ClearClient() { client_ = NULL; } |
| 42 | 42 |
| 43 virtual bool DrawsContent() const OVERRIDE; | 43 virtual bool DrawsContent() const OVERRIDE; |
| 44 virtual void SetLayerTreeHost(LayerTreeHost* layer_tree_host) OVERRIDE; | 44 virtual void SetLayerTreeHost(LayerTreeHost* layer_tree_host) OVERRIDE; |
| 45 virtual void SetTexturePriorities(const PriorityCalculator& priority_calc) | 45 virtual void SetTexturePriorities(const PriorityCalculator& priority_calc) |
| 46 OVERRIDE; | 46 OVERRIDE; |
| 47 virtual bool Update(ResourceUpdateQueue* queue, | 47 virtual bool Update(ResourceUpdateQueue* queue, |
| 48 const OcclusionTracker* occlusion) OVERRIDE; | 48 const OcclusionTracker<Layer>* occlusion) OVERRIDE; |
| 49 virtual bool NeedMoreUpdates() OVERRIDE; | 49 virtual bool NeedMoreUpdates() OVERRIDE; |
| 50 | 50 |
| 51 virtual void SetContentsOpaque(bool contents_opaque) OVERRIDE; | 51 virtual void SetContentsOpaque(bool contents_opaque) OVERRIDE; |
| 52 | 52 |
| 53 virtual bool SupportsLCDText() const OVERRIDE; | 53 virtual bool SupportsLCDText() const OVERRIDE; |
| 54 | 54 |
| 55 virtual skia::RefPtr<SkPicture> GetPicture() const OVERRIDE; | 55 virtual skia::RefPtr<SkPicture> GetPicture() const OVERRIDE; |
| 56 | 56 |
| 57 virtual void OnOutputSurfaceCreated() OVERRIDE; | 57 virtual void OnOutputSurfaceCreated() OVERRIDE; |
| 58 | 58 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 71 | 71 |
| 72 ContentLayerClient* client_; | 72 ContentLayerClient* client_; |
| 73 scoped_refptr<ContentLayerUpdater> updater_; | 73 scoped_refptr<ContentLayerUpdater> updater_; |
| 74 bool can_use_lcd_text_last_frame_; | 74 bool can_use_lcd_text_last_frame_; |
| 75 | 75 |
| 76 DISALLOW_COPY_AND_ASSIGN(ContentLayer); | 76 DISALLOW_COPY_AND_ASSIGN(ContentLayer); |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace cc | 79 } // namespace cc |
| 80 #endif // CC_LAYERS_CONTENT_LAYER_H_ | 80 #endif // CC_LAYERS_CONTENT_LAYER_H_ |
| OLD | NEW |