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

Side by Side Diff: ui/compositor/test/in_process_context_factory.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 | « services/ui/surfaces/direct_output_surface_ozone.cc ('k') | no next file » | 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 "ui/compositor/test/in_process_context_factory.h" 5 #include "ui/compositor/test/in_process_context_factory.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override { 97 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override {
98 return nullptr; 98 return nullptr;
99 } 99 }
100 bool IsDisplayedAsOverlayPlane() const override { return false; } 100 bool IsDisplayedAsOverlayPlane() const override { return false; }
101 unsigned GetOverlayTextureId() const override { return 0; } 101 unsigned GetOverlayTextureId() const override { return 0; }
102 bool SurfaceIsSuspendForRecycle() const override { return false; } 102 bool SurfaceIsSuspendForRecycle() const override { return false; }
103 bool HasExternalStencilTest() const override { return false; } 103 bool HasExternalStencilTest() const override { return false; }
104 void ApplyExternalStencil() override {} 104 void ApplyExternalStencil() override {}
105 105
106 private: 106 private:
107 void OnSwapBuffersComplete() { client_->DidSwapBuffersComplete(); } 107 void OnSwapBuffersComplete() { client_->DidReceiveSwapBuffersAck(); }
108 108
109 base::WeakPtrFactory<DirectOutputSurface> weak_ptr_factory_; 109 base::WeakPtrFactory<DirectOutputSurface> weak_ptr_factory_;
110 110
111 DISALLOW_COPY_AND_ASSIGN(DirectOutputSurface); 111 DISALLOW_COPY_AND_ASSIGN(DirectOutputSurface);
112 }; 112 };
113 113
114 } // namespace 114 } // namespace
115 115
116 InProcessContextFactory::InProcessContextFactory( 116 InProcessContextFactory::InProcessContextFactory(
117 bool context_factory_for_test, 117 bool context_factory_for_test,
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 280
281 void InProcessContextFactory::AddObserver(ContextFactoryObserver* observer) { 281 void InProcessContextFactory::AddObserver(ContextFactoryObserver* observer) {
282 observer_list_.AddObserver(observer); 282 observer_list_.AddObserver(observer);
283 } 283 }
284 284
285 void InProcessContextFactory::RemoveObserver(ContextFactoryObserver* observer) { 285 void InProcessContextFactory::RemoveObserver(ContextFactoryObserver* observer) {
286 observer_list_.RemoveObserver(observer); 286 observer_list_.RemoveObserver(observer);
287 } 287 }
288 288
289 } // namespace ui 289 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/surfaces/direct_output_surface_ozone.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698