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

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

Issue 2349743004: cc: Remove things from OutputSurface and CompositorFrameSink. (Closed)
Patch Set: delete-stuff-cfs: comment-and-rebase Created 4 years, 3 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
« no previous file with comments | « cc/output/output_surface_unittest.cc ('k') | cc/surfaces/direct_compositor_frame_sink.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "cc/base/region.h" 10 #include "cc/base/region.h"
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 } 143 }
144 144
145 size_t DefaultOverlayProcessor::GetStrategyCount() { 145 size_t DefaultOverlayProcessor::GetStrategyCount() {
146 return strategies_.size(); 146 return strategies_.size();
147 } 147 }
148 148
149 class OverlayOutputSurface : public OutputSurface { 149 class OverlayOutputSurface : public OutputSurface {
150 public: 150 public:
151 explicit OverlayOutputSurface( 151 explicit OverlayOutputSurface(
152 scoped_refptr<TestContextProvider> context_provider) 152 scoped_refptr<TestContextProvider> context_provider)
153 : OutputSurface(std::move(context_provider), nullptr, nullptr) { 153 : OutputSurface(std::move(context_provider)) {
154 surface_size_ = kDisplaySize; 154 surface_size_ = kDisplaySize;
155 device_scale_factor_ = 1; 155 device_scale_factor_ = 1;
156 is_displayed_as_overlay_plane_ = true; 156 is_displayed_as_overlay_plane_ = true;
157 } 157 }
158 158
159 void SetScaleFactor(float scale_factor) { 159 void SetScaleFactor(float scale_factor) {
160 device_scale_factor_ = scale_factor; 160 device_scale_factor_ = scale_factor;
161 } 161 }
162 162
163 // OutputSurface implementation 163 // OutputSurface implementation
(...skipping 1714 matching lines...) Expand 10 before | Expand all | Expand 10 after
1878 quad_->SetNew(pass_->shared_quad_state_list.back(), kOverlayRect, 1878 quad_->SetNew(pass_->shared_quad_state_list.back(), kOverlayRect,
1879 kOverlayRect, render_pass_id_, 0, gfx::Vector2dF(), gfx::Size(), 1879 kOverlayRect, render_pass_id_, 0, gfx::Vector2dF(), gfx::Size(),
1880 filters_, gfx::Vector2dF(1, 1), gfx::PointF(), 1880 filters_, gfx::Vector2dF(1, 1), gfx::PointF(),
1881 background_filters_); 1881 background_filters_);
1882 ProcessForOverlays(); 1882 ProcessForOverlays();
1883 EXPECT_EQ(0U, ca_layer_list_.size()); 1883 EXPECT_EQ(0U, ca_layer_list_.size());
1884 } 1884 }
1885 1885
1886 } // namespace 1886 } // namespace
1887 } // namespace cc 1887 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/output_surface_unittest.cc ('k') | cc/surfaces/direct_compositor_frame_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698