OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 "cc/output/software_renderer.h" | 5 #include "cc/output/software_renderer.h" |
6 | 6 |
7 #include "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
8 #include "cc/base/math_util.h" | 8 #include "cc/base/math_util.h" |
9 #include "cc/output/compositor_frame.h" | 9 #include "cc/output/compositor_frame.h" |
10 #include "cc/output/compositor_frame_ack.h" | 10 #include "cc/output/compositor_frame_ack.h" |
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 if (visible_ == visible) | 551 if (visible_ == visible) |
552 return; | 552 return; |
553 visible_ = visible; | 553 visible_ = visible; |
554 | 554 |
555 if (visible_) | 555 if (visible_) |
556 EnsureBackbuffer(); | 556 EnsureBackbuffer(); |
557 else | 557 else |
558 DiscardBackbuffer(); | 558 DiscardBackbuffer(); |
559 } | 559 } |
560 | 560 |
561 void SoftwareRenderer::SetDiscardBackBufferWhenNotVisible(bool discard) { | |
562 // The software renderer always discards the backbuffer when not visible. | |
563 } | |
564 | |
565 } // namespace cc | 561 } // namespace cc |
OLD | NEW |