Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Side by Side Diff: ui/compositor/layer.h

Issue 2790673003: Aura-Mus: Enable Surface Synchronization behind flag (Closed)
Patch Set: Addressed Sadrul's comments Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 gfx::Size texture_size_in_dip); 292 gfx::Size texture_size_in_dip);
293 void SetTextureSize(gfx::Size texture_size_in_dip); 293 void SetTextureSize(gfx::Size texture_size_in_dip);
294 void SetTextureFlipped(bool flipped); 294 void SetTextureFlipped(bool flipped);
295 bool TextureFlipped() const; 295 bool TextureFlipped() const;
296 296
297 // Begins showing content from a surface with a particular ID. 297 // Begins showing content from a surface with a particular ID.
298 void SetShowPrimarySurface( 298 void SetShowPrimarySurface(
299 const cc::SurfaceInfo& surface_info, 299 const cc::SurfaceInfo& surface_info,
300 scoped_refptr<cc::SurfaceReferenceFactory> surface_ref); 300 scoped_refptr<cc::SurfaceReferenceFactory> surface_ref);
301 301
302 // In the event that the primary surface is not yet available in the
303 // display compositor, the fallback surface will be used.
304 void SetFallbackSurface(
305 const cc::SurfaceInfo& surface_info,
306 scoped_refptr<cc::SurfaceReferenceFactory> surface_ref);
307
302 bool has_external_content() { 308 bool has_external_content() {
303 return texture_layer_.get() || surface_layer_.get(); 309 return texture_layer_.get() || surface_layer_.get();
304 } 310 }
305 311
306 // Show a solid color instead of delegated or surface contents. 312 // Show a solid color instead of delegated or surface contents.
307 void SetShowSolidColorContent(); 313 void SetShowSolidColorContent();
308 314
309 // Sets the layer's fill color. May only be called for LAYER_SOLID_COLOR. 315 // Sets the layer's fill color. May only be called for LAYER_SOLID_COLOR.
310 void SetColor(SkColor color); 316 void SetColor(SkColor color);
311 SkColor GetTargetColor() const; 317 SkColor GetTargetColor() const;
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 // The size of the frame or texture in DIP, set when SetShowDelegatedContent 552 // The size of the frame or texture in DIP, set when SetShowDelegatedContent
547 // or SetTextureMailbox was called. 553 // or SetTextureMailbox was called.
548 gfx::Size frame_size_in_dip_; 554 gfx::Size frame_size_in_dip_;
549 555
550 DISALLOW_COPY_AND_ASSIGN(Layer); 556 DISALLOW_COPY_AND_ASSIGN(Layer);
551 }; 557 };
552 558
553 } // namespace ui 559 } // namespace ui
554 560
555 #endif // UI_COMPOSITOR_LAYER_H_ 561 #endif // UI_COMPOSITOR_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698