| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/renderer/android/synchronous_compositor_frame_sink.h" | 5 #include "content/renderer/android/synchronous_compositor_frame_sink.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 } | 464 } |
| 465 | 465 |
| 466 void SynchronousCompositorFrameSink::ReturnResources( | 466 void SynchronousCompositorFrameSink::ReturnResources( |
| 467 const cc::ReturnedResourceArray& resources) { | 467 const cc::ReturnedResourceArray& resources) { |
| 468 DCHECK(resources.empty()); | 468 DCHECK(resources.empty()); |
| 469 client_->ReclaimResources(resources); | 469 client_->ReclaimResources(resources); |
| 470 } | 470 } |
| 471 | 471 |
| 472 void SynchronousCompositorFrameSink::SetBeginFrameSource( | 472 void SynchronousCompositorFrameSink::SetBeginFrameSource( |
| 473 cc::BeginFrameSource* begin_frame_source) { | 473 cc::BeginFrameSource* begin_frame_source) { |
| 474 // Software output is synchronous and doesn't use a BeginFrameSource. | 474 // Software output is synchronous and doesn't use the frame sink's (Display's) |
| 475 NOTREACHED(); | 475 // BeginFrameSource. |
| 476 } | 476 } |
| 477 | 477 |
| 478 } // namespace content | 478 } // namespace content |
| OLD | NEW |