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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 current_canvas_(NULL) { | 116 current_canvas_(NULL) { |
117 if (resource_provider_) { | 117 if (resource_provider_) { |
118 capabilities_.max_texture_size = resource_provider_->max_texture_size(); | 118 capabilities_.max_texture_size = resource_provider_->max_texture_size(); |
119 capabilities_.best_texture_format = | 119 capabilities_.best_texture_format = |
120 resource_provider_->best_texture_format(); | 120 resource_provider_->best_texture_format(); |
121 } | 121 } |
122 // The updater can access bitmaps while the SoftwareRenderer is using them. | 122 // The updater can access bitmaps while the SoftwareRenderer is using them. |
123 capabilities_.allow_partial_texture_updates = true; | 123 capabilities_.allow_partial_texture_updates = true; |
124 capabilities_.using_partial_swap = true; | 124 capabilities_.using_partial_swap = true; |
125 | 125 |
126 capabilities_.using_map_image = settings_->use_map_image; | 126 capabilities_.using_map_image = true; |
127 capabilities_.using_shared_memory_resources = true; | 127 capabilities_.using_shared_memory_resources = true; |
128 | 128 |
129 capabilities_.allow_rasterize_on_demand = true; | 129 capabilities_.allow_rasterize_on_demand = true; |
130 } | 130 } |
131 | 131 |
132 SoftwareRenderer::~SoftwareRenderer() {} | 132 SoftwareRenderer::~SoftwareRenderer() {} |
133 | 133 |
134 const RendererCapabilitiesImpl& SoftwareRenderer::Capabilities() const { | 134 const RendererCapabilitiesImpl& SoftwareRenderer::Capabilities() const { |
135 return capabilities_; | 135 return capabilities_; |
136 } | 136 } |
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 return; | 656 return; |
657 visible_ = visible; | 657 visible_ = visible; |
658 | 658 |
659 if (visible_) | 659 if (visible_) |
660 EnsureBackbuffer(); | 660 EnsureBackbuffer(); |
661 else | 661 else |
662 DiscardBackbuffer(); | 662 DiscardBackbuffer(); |
663 } | 663 } |
664 | 664 |
665 } // namespace cc | 665 } // namespace cc |
OLD | NEW |