| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 return gl->GetCopyTextureInternalFormat(); | 105 return gl->GetCopyTextureInternalFormat(); |
| 106 } | 106 } |
| 107 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override { | 107 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override { |
| 108 return nullptr; | 108 return nullptr; |
| 109 } | 109 } |
| 110 bool IsDisplayedAsOverlayPlane() const override { return false; } | 110 bool IsDisplayedAsOverlayPlane() const override { return false; } |
| 111 unsigned GetOverlayTextureId() const override { return 0; } | 111 unsigned GetOverlayTextureId() const override { return 0; } |
| 112 bool SurfaceIsSuspendForRecycle() const override { return false; } | 112 bool SurfaceIsSuspendForRecycle() const override { return false; } |
| 113 bool HasExternalStencilTest() const override { return false; } | 113 bool HasExternalStencilTest() const override { return false; } |
| 114 void ApplyExternalStencil() override {} | 114 void ApplyExternalStencil() override {} |
| 115 bool CanPartialDraw(const gfx::Rect& damage) override { return false; } |
| 115 | 116 |
| 116 private: | 117 private: |
| 117 void OnSwapBuffersComplete() { client_->DidReceiveSwapBuffersAck(); } | 118 void OnSwapBuffersComplete() { client_->DidReceiveSwapBuffersAck(); } |
| 118 | 119 |
| 119 cc::OutputSurfaceClient* client_ = nullptr; | 120 cc::OutputSurfaceClient* client_ = nullptr; |
| 120 base::WeakPtrFactory<DirectOutputSurface> weak_ptr_factory_; | 121 base::WeakPtrFactory<DirectOutputSurface> weak_ptr_factory_; |
| 121 | 122 |
| 122 DISALLOW_COPY_AND_ASSIGN(DirectOutputSurface); | 123 DISALLOW_COPY_AND_ASSIGN(DirectOutputSurface); |
| 123 }; | 124 }; |
| 124 | 125 |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 data->surface_handle = tracker->AddSurfaceForNativeWidget(widget); | 336 data->surface_handle = tracker->AddSurfaceForNativeWidget(widget); |
| 336 #endif | 337 #endif |
| 337 } | 338 } |
| 338 | 339 |
| 339 PerCompositorData* return_ptr = data.get(); | 340 PerCompositorData* return_ptr = data.get(); |
| 340 per_compositor_data_[compositor] = std::move(data); | 341 per_compositor_data_[compositor] = std::move(data); |
| 341 return return_ptr; | 342 return return_ptr; |
| 342 } | 343 } |
| 343 | 344 |
| 344 } // namespace ui | 345 } // namespace ui |
| OLD | NEW |