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

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

Issue 2403373002: cc: Clean up OutputSurfaceClient. (Closed)
Patch Set: osclient: rebase Created 4 years, 2 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/display.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 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 void ApplyExternalStencil() override {} 174 void ApplyExternalStencil() override {}
175 OverlayCandidateValidator* GetOverlayCandidateValidator() const override { 175 OverlayCandidateValidator* GetOverlayCandidateValidator() const override {
176 return overlay_candidate_validator_.get(); 176 return overlay_candidate_validator_.get();
177 } 177 }
178 bool IsDisplayedAsOverlayPlane() const override { 178 bool IsDisplayedAsOverlayPlane() const override {
179 return is_displayed_as_overlay_plane_; 179 return is_displayed_as_overlay_plane_;
180 } 180 }
181 unsigned GetOverlayTextureId() const override { return 10000; } 181 unsigned GetOverlayTextureId() const override { return 10000; }
182 bool SurfaceIsSuspendForRecycle() const override { return false; } 182 bool SurfaceIsSuspendForRecycle() const override { return false; }
183 183
184 void OnSwapBuffersComplete() { client_->DidSwapBuffersComplete(); } 184 void OnSwapBuffersComplete() { client_->DidReceiveSwapBuffersAck(); }
185 185
186 void set_is_displayed_as_overlay_plane(bool value) { 186 void set_is_displayed_as_overlay_plane(bool value) {
187 is_displayed_as_overlay_plane_ = value; 187 is_displayed_as_overlay_plane_ = value;
188 } 188 }
189 189
190 void SetOverlayCandidateValidator(OverlayCandidateValidator* validator) { 190 void SetOverlayCandidateValidator(OverlayCandidateValidator* validator) {
191 overlay_candidate_validator_.reset(validator); 191 overlay_candidate_validator_.reset(validator);
192 } 192 }
193 193
194 unsigned bind_framebuffer_count() const { return bind_framebuffer_count_; } 194 unsigned bind_framebuffer_count() const { return bind_framebuffer_count_; }
(...skipping 1702 matching lines...) Expand 10 before | Expand all | Expand 10 after
1897 gfx::Size(), filters_, gfx::Vector2dF(1, 1), gfx::PointF(), 1897 gfx::Size(), filters_, gfx::Vector2dF(1, 1), gfx::PointF(),
1898 background_filters_); 1898 background_filters_);
1899 } 1899 }
1900 1900
1901 ProcessForOverlays(); 1901 ProcessForOverlays();
1902 EXPECT_EQ(0U, ca_layer_list_.size()); 1902 EXPECT_EQ(0U, ca_layer_list_.size());
1903 } 1903 }
1904 1904
1905 } // namespace 1905 } // namespace
1906 } // namespace cc 1906 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/output_surface_unittest.cc ('k') | cc/surfaces/display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698