| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |