| 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 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "third_party/skia/include/core/SkPicture.h" | 31 #include "third_party/skia/include/core/SkPicture.h" |
| 32 #include "third_party/skia/include/core/SkXfermode.h" | 32 #include "third_party/skia/include/core/SkXfermode.h" |
| 33 #include "ui/gfx/rect.h" | 33 #include "ui/gfx/rect.h" |
| 34 #include "ui/gfx/rect_f.h" | 34 #include "ui/gfx/rect_f.h" |
| 35 #include "ui/gfx/transform.h" | 35 #include "ui/gfx/transform.h" |
| 36 | 36 |
| 37 namespace gfx { | 37 namespace gfx { |
| 38 class BoxF; | 38 class BoxF; |
| 39 } | 39 } |
| 40 | 40 |
| 41 namespace base { |
| 42 namespace debug { |
| 43 class ConvertableToTraceFormat; |
| 44 } |
| 45 } |
| 46 |
| 41 namespace cc { | 47 namespace cc { |
| 42 | 48 |
| 43 class Animation; | 49 class Animation; |
| 44 class AnimationDelegate; | 50 class AnimationDelegate; |
| 45 struct AnimationEvent; | 51 struct AnimationEvent; |
| 46 class CopyOutputRequest; | 52 class CopyOutputRequest; |
| 47 class LayerAnimationDelegate; | 53 class LayerAnimationDelegate; |
| 48 class LayerAnimationEventObserver; | 54 class LayerAnimationEventObserver; |
| 49 class LayerClient; | 55 class LayerClient; |
| 50 class LayerImpl; | 56 class LayerImpl; |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 virtual void SavePaintProperties(); | 355 virtual void SavePaintProperties(); |
| 350 // Returns true iff any resources were updated that need to be committed. | 356 // Returns true iff any resources were updated that need to be committed. |
| 351 virtual bool Update(ResourceUpdateQueue* queue, | 357 virtual bool Update(ResourceUpdateQueue* queue, |
| 352 const OcclusionTracker* occlusion); | 358 const OcclusionTracker* occlusion); |
| 353 virtual bool NeedMoreUpdates(); | 359 virtual bool NeedMoreUpdates(); |
| 354 virtual void SetIsMask(bool is_mask) {} | 360 virtual void SetIsMask(bool is_mask) {} |
| 355 virtual void ReduceMemoryUsage() {} | 361 virtual void ReduceMemoryUsage() {} |
| 356 virtual void OnOutputSurfaceCreated() {} | 362 virtual void OnOutputSurfaceCreated() {} |
| 357 | 363 |
| 358 virtual std::string DebugName(); | 364 virtual std::string DebugName(); |
| 365 virtual scoped_refptr<base::debug::ConvertableToTraceFormat> TakeDebugInfo(); |
| 359 | 366 |
| 360 void SetLayerClient(LayerClient* client) { client_ = client; } | 367 void SetLayerClient(LayerClient* client) { client_ = client; } |
| 361 | 368 |
| 362 void SetCompositingReasons(CompositingReasons reasons); | 369 void SetCompositingReasons(CompositingReasons reasons); |
| 363 | 370 |
| 364 virtual void PushPropertiesTo(LayerImpl* layer); | 371 virtual void PushPropertiesTo(LayerImpl* layer); |
| 365 | 372 |
| 366 void CreateRenderSurface(); | 373 void CreateRenderSurface(); |
| 367 void ClearRenderSurface(); | 374 void ClearRenderSurface(); |
| 368 | 375 |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 612 DrawProperties<Layer> draw_properties_; | 619 DrawProperties<Layer> draw_properties_; |
| 613 | 620 |
| 614 PaintProperties paint_properties_; | 621 PaintProperties paint_properties_; |
| 615 | 622 |
| 616 DISALLOW_COPY_AND_ASSIGN(Layer); | 623 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 617 }; | 624 }; |
| 618 | 625 |
| 619 } // namespace cc | 626 } // namespace cc |
| 620 | 627 |
| 621 #endif // CC_LAYERS_LAYER_H_ | 628 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |