OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_COMPOSITOR_LAYER_H_ | 5 #ifndef UI_COMPOSITOR_LAYER_H_ |
6 #define UI_COMPOSITOR_LAYER_H_ | 6 #define UI_COMPOSITOR_LAYER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 | 314 |
315 // ContentLayerClient | 315 // ContentLayerClient |
316 virtual void PaintContents( | 316 virtual void PaintContents( |
317 SkCanvas* canvas, gfx::Rect clip, gfx::RectF* opaque) OVERRIDE; | 317 SkCanvas* canvas, gfx::Rect clip, gfx::RectF* opaque) OVERRIDE; |
318 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {} | 318 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {} |
319 | 319 |
320 cc::Layer* cc_layer() { return cc_layer_; } | 320 cc::Layer* cc_layer() { return cc_layer_; } |
321 | 321 |
322 // TextureLayerClient | 322 // TextureLayerClient |
323 virtual unsigned PrepareTexture() OVERRIDE; | 323 virtual unsigned PrepareTexture() OVERRIDE; |
324 virtual WebKit::WebGraphicsContext3D* Context3d() OVERRIDE; | 324 virtual bool IsContextLost() OVERRIDE; |
| 325 virtual void RateLimitContext() OVERRIDE; |
325 virtual bool PrepareTextureMailbox( | 326 virtual bool PrepareTextureMailbox( |
326 cc::TextureMailbox* mailbox, | 327 cc::TextureMailbox* mailbox, |
327 scoped_ptr<cc::SingleReleaseCallback>* release_callback, | 328 scoped_ptr<cc::SingleReleaseCallback>* release_callback, |
328 bool use_shared_memory) OVERRIDE; | 329 bool use_shared_memory) OVERRIDE; |
329 | 330 |
330 float device_scale_factor() const { return device_scale_factor_; } | 331 float device_scale_factor() const { return device_scale_factor_; } |
331 | 332 |
332 // Forces a render surface to be used on this layer. This has no positive | 333 // Forces a render surface to be used on this layer. This has no positive |
333 // impact, and is only used for benchmarking/testing purpose. | 334 // impact, and is only used for benchmarking/testing purpose. |
334 void SetForceRenderSurface(bool force); | 335 void SetForceRenderSurface(bool force); |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 // The size of the delegated frame in DIP, set when SetShowDelegatedContent | 494 // The size of the delegated frame in DIP, set when SetShowDelegatedContent |
494 // was called. | 495 // was called. |
495 gfx::Size delegated_frame_size_in_dip_; | 496 gfx::Size delegated_frame_size_in_dip_; |
496 | 497 |
497 DISALLOW_COPY_AND_ASSIGN(Layer); | 498 DISALLOW_COPY_AND_ASSIGN(Layer); |
498 }; | 499 }; |
499 | 500 |
500 } // namespace ui | 501 } // namespace ui |
501 | 502 |
502 #endif // UI_COMPOSITOR_LAYER_H_ | 503 #endif // UI_COMPOSITOR_LAYER_H_ |
OLD | NEW |