| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "content/browser/renderer_host/compositor_impl_android.h" | 5 #include "content/browser/renderer_host/compositor_impl_android.h" |
| 6 | 6 |
| 7 #include <android/bitmap.h> | 7 #include <android/bitmap.h> |
| 8 #include <android/native_window_jni.h> | 8 #include <android/native_window_jni.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 #include <unordered_set> | 10 #include <unordered_set> |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 context_provider()->ContextGL()->DiscardBackbufferCHROMIUM(); | 180 context_provider()->ContextGL()->DiscardBackbufferCHROMIUM(); |
| 181 } | 181 } |
| 182 | 182 |
| 183 void BindFramebuffer() override { | 183 void BindFramebuffer() override { |
| 184 context_provider()->ContextGL()->BindFramebuffer(GL_FRAMEBUFFER, 0); | 184 context_provider()->ContextGL()->BindFramebuffer(GL_FRAMEBUFFER, 0); |
| 185 } | 185 } |
| 186 | 186 |
| 187 void Reshape(const gfx::Size& size, | 187 void Reshape(const gfx::Size& size, |
| 188 float device_scale_factor, | 188 float device_scale_factor, |
| 189 const gfx::ColorSpace& color_space, | 189 const gfx::ColorSpace& color_space, |
| 190 bool has_alpha) override { | 190 bool has_alpha, |
| 191 bool use_stencil) override { |
| 191 context_provider()->ContextGL()->ResizeCHROMIUM( | 192 context_provider()->ContextGL()->ResizeCHROMIUM( |
| 192 size.width(), size.height(), device_scale_factor, has_alpha); | 193 size.width(), size.height(), device_scale_factor, has_alpha); |
| 193 } | 194 } |
| 194 | 195 |
| 195 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override { | 196 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override { |
| 196 return overlay_candidate_validator_.get(); | 197 return overlay_candidate_validator_.get(); |
| 197 } | 198 } |
| 198 | 199 |
| 199 bool IsDisplayedAsOverlayPlane() const override { return false; } | 200 bool IsDisplayedAsOverlayPlane() const override { return false; } |
| 200 unsigned GetOverlayTextureId() const override { return 0; } | 201 unsigned GetOverlayTextureId() const override { return 0; } |
| (...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 732 | 733 |
| 733 cc::FrameSinkId CompositorImpl::GetFrameSinkId() { | 734 cc::FrameSinkId CompositorImpl::GetFrameSinkId() { |
| 734 return frame_sink_id_; | 735 return frame_sink_id_; |
| 735 } | 736 } |
| 736 | 737 |
| 737 bool CompositorImpl::HavePendingReadbacks() { | 738 bool CompositorImpl::HavePendingReadbacks() { |
| 738 return !readback_layer_tree_->children().empty(); | 739 return !readback_layer_tree_->children().empty(); |
| 739 } | 740 } |
| 740 | 741 |
| 741 } // namespace content | 742 } // namespace content |
| OLD | NEW |