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 "content/public/test/test_synchronous_compositor_android.h" | 5 #include "content/public/test/test_synchronous_compositor_android.h" |
6 | 6 |
| 7 #include "cc/output/begin_frame_args.h" |
7 #include "cc/output/compositor_frame.h" | 8 #include "cc/output/compositor_frame.h" |
8 | 9 |
9 namespace content { | 10 namespace content { |
10 | 11 |
11 TestSynchronousCompositor::TestSynchronousCompositor() | 12 TestSynchronousCompositor::TestSynchronousCompositor() |
12 : client_(NULL), hardware_initialized_(false) { | 13 : client_(NULL), hardware_initialized_(false) { |
13 } | 14 } |
14 | 15 |
15 TestSynchronousCompositor::~TestSynchronousCompositor() { | 16 TestSynchronousCompositor::~TestSynchronousCompositor() { |
16 DCHECK(!hardware_initialized_); | 17 DCHECK(!hardware_initialized_); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 55 |
55 bool TestSynchronousCompositor::DemandDrawSw(SkCanvas* canvas) { | 56 bool TestSynchronousCompositor::DemandDrawSw(SkCanvas* canvas) { |
56 DCHECK(canvas); | 57 DCHECK(canvas); |
57 return true; | 58 return true; |
58 } | 59 } |
59 | 60 |
60 void TestSynchronousCompositor::SetMemoryPolicy(size_t bytes_limit) { | 61 void TestSynchronousCompositor::SetMemoryPolicy(size_t bytes_limit) { |
61 DCHECK(!bytes_limit || hardware_initialized_) << bytes_limit; | 62 DCHECK(!bytes_limit || hardware_initialized_) << bytes_limit; |
62 } | 63 } |
63 | 64 |
| 65 void TestSynchronousCompositor::SendBeginFrame(cc::BeginFrameArgs args) { |
| 66 client_->PostInvalidate(); |
| 67 } |
| 68 |
64 } // namespace content | 69 } // namespace content |
OLD | NEW |