| 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_LAYER_H_ | 5 #ifndef CC_LAYERS_LAYER_H_ |
| 6 #define CC_LAYERS_LAYER_H_ | 6 #define CC_LAYERS_LAYER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 #include "ui/gfx/transform.h" | 40 #include "ui/gfx/transform.h" |
| 41 | 41 |
| 42 namespace gfx { | 42 namespace gfx { |
| 43 class BoxF; | 43 class BoxF; |
| 44 } | 44 } |
| 45 | 45 |
| 46 namespace base { | 46 namespace base { |
| 47 namespace trace_event { | 47 namespace trace_event { |
| 48 class ConvertableToTraceFormat; | 48 class ConvertableToTraceFormat; |
| 49 } | 49 } |
| 50 | |
| 51 // TODO(ssid): remove these aliases after the tracing clients are moved to the | |
| 52 // new trace_event namespace. See crbug.com/451032. ETA: March 2015 | |
| 53 namespace debug { | |
| 54 using ::base::trace_event::ConvertableToTraceFormat; | |
| 55 } | 50 } |
| 56 } // namespace base | |
| 57 | 51 |
| 58 namespace cc { | 52 namespace cc { |
| 59 | 53 |
| 60 class Animation; | 54 class Animation; |
| 61 class AnimationDelegate; | 55 class AnimationDelegate; |
| 62 struct AnimationEvent; | 56 struct AnimationEvent; |
| 63 class CopyOutputRequest; | 57 class CopyOutputRequest; |
| 64 class LayerAnimationDelegate; | 58 class LayerAnimationDelegate; |
| 65 class LayerAnimationEventObserver; | 59 class LayerAnimationEventObserver; |
| 66 class LayerClient; | 60 class LayerClient; |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 virtual void SavePaintProperties(); | 370 virtual void SavePaintProperties(); |
| 377 // Returns true iff any resources were updated that need to be committed. | 371 // Returns true iff any resources were updated that need to be committed. |
| 378 virtual bool Update(ResourceUpdateQueue* queue, | 372 virtual bool Update(ResourceUpdateQueue* queue, |
| 379 const OcclusionTracker<Layer>* occlusion); | 373 const OcclusionTracker<Layer>* occlusion); |
| 380 virtual bool NeedMoreUpdates(); | 374 virtual bool NeedMoreUpdates(); |
| 381 virtual void SetIsMask(bool is_mask) {} | 375 virtual void SetIsMask(bool is_mask) {} |
| 382 virtual void ReduceMemoryUsage() {} | 376 virtual void ReduceMemoryUsage() {} |
| 383 virtual void OnOutputSurfaceCreated() {} | 377 virtual void OnOutputSurfaceCreated() {} |
| 384 virtual bool IsSuitableForGpuRasterization() const; | 378 virtual bool IsSuitableForGpuRasterization() const; |
| 385 | 379 |
| 386 virtual scoped_refptr<base::debug::ConvertableToTraceFormat> TakeDebugInfo(); | 380 virtual scoped_refptr<base::trace_event::ConvertableToTraceFormat> |
| 381 TakeDebugInfo(); |
| 387 | 382 |
| 388 void SetLayerClient(LayerClient* client) { client_ = client; } | 383 void SetLayerClient(LayerClient* client) { client_ = client; } |
| 389 | 384 |
| 390 virtual void PushPropertiesTo(LayerImpl* layer); | 385 virtual void PushPropertiesTo(LayerImpl* layer); |
| 391 | 386 |
| 392 void CreateRenderSurface(); | 387 void CreateRenderSurface(); |
| 393 void ClearRenderSurface(); | 388 void ClearRenderSurface(); |
| 394 | 389 |
| 395 void ClearRenderSurfaceLayerList(); | 390 void ClearRenderSurfaceLayerList(); |
| 396 | 391 |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 719 | 714 |
| 720 std::vector<FrameTimingRequest> frame_timing_requests_; | 715 std::vector<FrameTimingRequest> frame_timing_requests_; |
| 721 bool frame_timing_requests_dirty_; | 716 bool frame_timing_requests_dirty_; |
| 722 | 717 |
| 723 DISALLOW_COPY_AND_ASSIGN(Layer); | 718 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 724 }; | 719 }; |
| 725 | 720 |
| 726 } // namespace cc | 721 } // namespace cc |
| 727 | 722 |
| 728 #endif // CC_LAYERS_LAYER_H_ | 723 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |