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

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

Issue 2476103002: Disable fullscren fb optimization with sw mirroring. (Closed)
Patch Set: We now call CheckOverlaySupport. 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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 const gfx::Transform kSwapTransform = 62 const gfx::Transform kSwapTransform =
63 gfx::Transform(0, 1, 1, 0, 0, 0); // x,y -> y,x. 63 gfx::Transform(0, 1, 1, 0, 0, 0); // x,y -> y,x.
64 64
65 void MailboxReleased(const gpu::SyncToken& sync_token, 65 void MailboxReleased(const gpu::SyncToken& sync_token,
66 bool lost_resource, 66 bool lost_resource,
67 BlockingTaskRunner* main_thread_task_runner) {} 67 BlockingTaskRunner* main_thread_task_runner) {}
68 68
69 class FullscreenOverlayValidator : public OverlayCandidateValidator { 69 class FullscreenOverlayValidator : public OverlayCandidateValidator {
70 public: 70 public:
71 void GetStrategies(OverlayProcessor::StrategyList* strategies) override { 71 void GetStrategies(OverlayProcessor::StrategyList* strategies) override {
72 strategies->push_back(base::MakeUnique<OverlayStrategyFullscreen>()); 72 strategies->push_back(base::MakeUnique<OverlayStrategyFullscreen>(this));
73 } 73 }
74 bool AllowCALayerOverlays() override { return false; } 74 bool AllowCALayerOverlays() override { return false; }
75 void CheckOverlaySupport(OverlayCandidateList* surfaces) override { 75 void CheckOverlaySupport(OverlayCandidateList* surfaces) override {}
76 // We're not checking for support.
77 ASSERT_TRUE(false);
78 }
79 }; 76 };
80 77
81 class SingleOverlayValidator : public OverlayCandidateValidator { 78 class SingleOverlayValidator : public OverlayCandidateValidator {
82 public: 79 public:
83 void GetStrategies(OverlayProcessor::StrategyList* strategies) override { 80 void GetStrategies(OverlayProcessor::StrategyList* strategies) override {
84 strategies->push_back(base::MakeUnique<OverlayStrategySingleOnTop>(this)); 81 strategies->push_back(base::MakeUnique<OverlayStrategySingleOnTop>(this));
85 strategies->push_back(base::MakeUnique<OverlayStrategyUnderlay>(this)); 82 strategies->push_back(base::MakeUnique<OverlayStrategyUnderlay>(this));
86 } 83 }
87 bool AllowCALayerOverlays() override { return false; } 84 bool AllowCALayerOverlays() override { return false; }
88 void CheckOverlaySupport(OverlayCandidateList* surfaces) override { 85 void CheckOverlaySupport(OverlayCandidateList* surfaces) override {
(...skipping 1808 matching lines...) Expand 10 before | Expand all | Expand 10 after
1897 gfx::Size(), filters_, gfx::Vector2dF(1, 1), gfx::PointF(), 1894 gfx::Size(), filters_, gfx::Vector2dF(1, 1), gfx::PointF(),
1898 background_filters_); 1895 background_filters_);
1899 } 1896 }
1900 1897
1901 ProcessForOverlays(); 1898 ProcessForOverlays();
1902 EXPECT_EQ(0U, ca_layer_list_.size()); 1899 EXPECT_EQ(0U, ca_layer_list_.size());
1903 } 1900 }
1904 1901
1905 } // namespace 1902 } // namespace
1906 } // namespace cc 1903 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698