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

Side by Side Diff: cc/output/overlay_strategy_underlay.cc

Issue 2508203004: Add hints for potential overlay promotion on android. (Closed)
Patch Set: Created 4 years, 1 month 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "cc/output/overlay_strategy_underlay.h" 5 #include "cc/output/overlay_strategy_underlay.h"
6 6
7 #include "cc/output/overlay_candidate_validator.h" 7 #include "cc/output/overlay_candidate_validator.h"
8 #include "cc/quads/draw_quad.h" 8 #include "cc/quads/draw_quad.h"
9 #include "cc/quads/solid_color_draw_quad.h" 9 #include "cc/quads/solid_color_draw_quad.h"
10 #include "cc/quads/stream_video_draw_quad.h"
10 11
11 namespace cc { 12 namespace cc {
12 13
13 OverlayStrategyUnderlay::OverlayStrategyUnderlay( 14 OverlayStrategyUnderlay::OverlayStrategyUnderlay(
14 OverlayCandidateValidator* capability_checker) 15 OverlayCandidateValidator* capability_checker)
15 : capability_checker_(capability_checker) { 16 : capability_checker_(capability_checker) {
16 DCHECK(capability_checker); 17 DCHECK(capability_checker);
17 } 18 }
18 19
19 OverlayStrategyUnderlay::~OverlayStrategyUnderlay() {} 20 OverlayStrategyUnderlay::~OverlayStrategyUnderlay() {}
(...skipping 28 matching lines...) Expand all
48 SK_ColorTRANSPARENT, true); 49 SK_ColorTRANSPARENT, true);
49 candidate_list->swap(new_candidate_list); 50 candidate_list->swap(new_candidate_list);
50 return true; 51 return true;
51 } 52 }
52 } 53 }
53 54
54 return false; 55 return false;
55 } 56 }
56 57
57 } // namespace cc 58 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698