| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 UI_GFX_COMPOSITOR_LAYER_H_ | 5 #ifndef UI_GFX_COMPOSITOR_LAYER_H_ |
| 6 #define UI_GFX_COMPOSITOR_LAYER_H_ | 6 #define UI_GFX_COMPOSITOR_LAYER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 virtual void SetTransformFromAnimation(const Transform& transform) OVERRIDE; | 264 virtual void SetTransformFromAnimation(const Transform& transform) OVERRIDE; |
| 265 virtual void SetOpacityFromAnimation(float opacity) OVERRIDE; | 265 virtual void SetOpacityFromAnimation(float opacity) OVERRIDE; |
| 266 virtual void ScheduleDrawForAnimation() OVERRIDE; | 266 virtual void ScheduleDrawForAnimation() OVERRIDE; |
| 267 virtual const gfx::Rect& GetBoundsForAnimation() const OVERRIDE; | 267 virtual const gfx::Rect& GetBoundsForAnimation() const OVERRIDE; |
| 268 virtual const Transform& GetTransformForAnimation() const OVERRIDE; | 268 virtual const Transform& GetTransformForAnimation() const OVERRIDE; |
| 269 virtual float GetOpacityForAnimation() const OVERRIDE; | 269 virtual float GetOpacityForAnimation() const OVERRIDE; |
| 270 | 270 |
| 271 #if defined(USE_WEBKIT_COMPOSITOR) | 271 #if defined(USE_WEBKIT_COMPOSITOR) |
| 272 void CreateWebLayer(); | 272 void CreateWebLayer(); |
| 273 void RecomputeTransform(); | 273 void RecomputeTransform(); |
| 274 void RecomputeDrawsContent(); | 274 void RecomputeDrawsContentAndUVRect(); |
| 275 #endif | 275 #endif |
| 276 | 276 |
| 277 const LayerType type_; | 277 const LayerType type_; |
| 278 | 278 |
| 279 Compositor* compositor_; | 279 Compositor* compositor_; |
| 280 | 280 |
| 281 scoped_refptr<ui::Texture> texture_; | 281 scoped_refptr<ui::Texture> texture_; |
| 282 | 282 |
| 283 Layer* parent_; | 283 Layer* parent_; |
| 284 | 284 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 310 WebKit::WebLayer web_layer_; | 310 WebKit::WebLayer web_layer_; |
| 311 bool web_layer_is_accelerated_; | 311 bool web_layer_is_accelerated_; |
| 312 #endif | 312 #endif |
| 313 | 313 |
| 314 DISALLOW_COPY_AND_ASSIGN(Layer); | 314 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 315 }; | 315 }; |
| 316 | 316 |
| 317 } // namespace ui | 317 } // namespace ui |
| 318 | 318 |
| 319 #endif // UI_GFX_COMPOSITOR_LAYER_H_ | 319 #endif // UI_GFX_COMPOSITOR_LAYER_H_ |
| OLD | NEW |