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

Side by Side Diff: components/display_compositor/compositor_overlay_candidate_validator_android.cc

Issue 2736643004: Add DCLayerOverlayProcessor and supporting DCLayer structures. (Closed)
Patch Set: split CALayerOverlay into DCLayerOverlay Created 3 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "components/display_compositor/compositor_overlay_candidate_validator_a ndroid.h" 5 #include "components/display_compositor/compositor_overlay_candidate_validator_a ndroid.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "cc/output/overlay_processor.h" 10 #include "cc/output/overlay_processor.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 gfx::RectF(gfx::ToEnclosingRect(candidate.display_rect)); 49 gfx::RectF(gfx::ToEnclosingRect(candidate.display_rect));
50 candidate.overlay_handled = true; 50 candidate.overlay_handled = true;
51 candidate.plane_z_order = -1; 51 candidate.plane_z_order = -1;
52 } 52 }
53 } 53 }
54 54
55 bool CompositorOverlayCandidateValidatorAndroid::AllowCALayerOverlays() { 55 bool CompositorOverlayCandidateValidatorAndroid::AllowCALayerOverlays() {
56 return false; 56 return false;
57 } 57 }
58 58
59 bool CompositorOverlayCandidateValidatorAndroid::AllowDCLayerOverlays() {
60 return false;
61 }
62
59 // Overlays will still be allowed when software mirroring is enabled, even 63 // Overlays will still be allowed when software mirroring is enabled, even
60 // though they won't appear in the mirror. 64 // though they won't appear in the mirror.
61 void CompositorOverlayCandidateValidatorAndroid::SetSoftwareMirrorMode( 65 void CompositorOverlayCandidateValidatorAndroid::SetSoftwareMirrorMode(
62 bool enabled) {} 66 bool enabled) {}
63 67
64 } // namespace display_compositor 68 } // namespace display_compositor
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698