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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 | 309 |
310 // Sometimes the Layer is being updated by something other than SetCanvas | 310 // Sometimes the Layer is being updated by something other than SetCanvas |
311 // (e.g. the GPU process on UI_COMPOSITOR_IMAGE_TRANSPORT). | 311 // (e.g. the GPU process on UI_COMPOSITOR_IMAGE_TRANSPORT). |
312 bool layer_updated_externally() const { return layer_updated_externally_; } | 312 bool layer_updated_externally() const { return layer_updated_externally_; } |
313 | 313 |
314 // Requets a copy of the layer's output as a texture or bitmap. | 314 // Requets a copy of the layer's output as a texture or bitmap. |
315 void RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request); | 315 void RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request); |
316 | 316 |
317 // ContentLayerClient | 317 // ContentLayerClient |
318 virtual void PaintContents( | 318 virtual void PaintContents( |
319 SkCanvas* canvas, gfx::Rect clip, gfx::RectF* opaque) OVERRIDE; | 319 SkCanvas* canvas, const gfx::Rect& clip, gfx::RectF* opaque) OVERRIDE; |
320 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {} | 320 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {} |
321 | 321 |
322 cc::Layer* cc_layer() { return cc_layer_; } | 322 cc::Layer* cc_layer() { return cc_layer_; } |
323 | 323 |
324 // TextureLayerClient | 324 // TextureLayerClient |
325 virtual unsigned PrepareTexture() OVERRIDE; | 325 virtual unsigned PrepareTexture() OVERRIDE; |
326 virtual bool PrepareTextureMailbox( | 326 virtual bool PrepareTextureMailbox( |
327 cc::TextureMailbox* mailbox, | 327 cc::TextureMailbox* mailbox, |
328 scoped_ptr<cc::SingleReleaseCallback>* release_callback, | 328 scoped_ptr<cc::SingleReleaseCallback>* release_callback, |
329 bool use_shared_memory) OVERRIDE; | 329 bool use_shared_memory) OVERRIDE; |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 // The size of the delegated frame in DIP, set when SetShowDelegatedContent | 497 // The size of the delegated frame in DIP, set when SetShowDelegatedContent |
498 // was called. | 498 // was called. |
499 gfx::Size delegated_frame_size_in_dip_; | 499 gfx::Size delegated_frame_size_in_dip_; |
500 | 500 |
501 DISALLOW_COPY_AND_ASSIGN(Layer); | 501 DISALLOW_COPY_AND_ASSIGN(Layer); |
502 }; | 502 }; |
503 | 503 |
504 } // namespace ui | 504 } // namespace ui |
505 | 505 |
506 #endif // UI_COMPOSITOR_LAYER_H_ | 506 #endif // UI_COMPOSITOR_LAYER_H_ |
OLD | NEW |