| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 void EnsureBackbuffer() override {} | 222 void EnsureBackbuffer() override {} |
| 223 | 223 |
| 224 void DiscardBackbuffer() override { | 224 void DiscardBackbuffer() override { |
| 225 context_provider()->ContextGL()->DiscardBackbufferCHROMIUM(); | 225 context_provider()->ContextGL()->DiscardBackbufferCHROMIUM(); |
| 226 } | 226 } |
| 227 | 227 |
| 228 void BindFramebuffer() override { | 228 void BindFramebuffer() override { |
| 229 context_provider()->ContextGL()->BindFramebuffer(GL_FRAMEBUFFER, 0); | 229 context_provider()->ContextGL()->BindFramebuffer(GL_FRAMEBUFFER, 0); |
| 230 } | 230 } |
| 231 | 231 |
| 232 void SetDrawRectangle(const gfx::Rect& rect) override {} |
| 233 |
| 232 void Reshape(const gfx::Size& size, | 234 void Reshape(const gfx::Size& size, |
| 233 float device_scale_factor, | 235 float device_scale_factor, |
| 234 const gfx::ColorSpace& color_space, | 236 const gfx::ColorSpace& color_space, |
| 235 bool has_alpha, | 237 bool has_alpha, |
| 236 bool use_stencil) override { | 238 bool use_stencil) override { |
| 237 context_provider()->ContextGL()->ResizeCHROMIUM( | 239 context_provider()->ContextGL()->ResizeCHROMIUM( |
| 238 size.width(), size.height(), device_scale_factor, has_alpha); | 240 size.width(), size.height(), device_scale_factor, has_alpha); |
| 239 } | 241 } |
| 240 | 242 |
| 241 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override { | 243 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override { |
| (...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 818 } | 820 } |
| 819 GetSurfaceManager()->UnregisterFrameSinkHierarchy(frame_sink_id_, | 821 GetSurfaceManager()->UnregisterFrameSinkHierarchy(frame_sink_id_, |
| 820 frame_sink_id); | 822 frame_sink_id); |
| 821 } | 823 } |
| 822 | 824 |
| 823 bool CompositorImpl::HavePendingReadbacks() { | 825 bool CompositorImpl::HavePendingReadbacks() { |
| 824 return !readback_layer_tree_->children().empty(); | 826 return !readback_layer_tree_->children().empty(); |
| 825 } | 827 } |
| 826 | 828 |
| 827 } // namespace content | 829 } // namespace content |
| OLD | NEW |