| 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 void EnsureBackbuffer() override {} | 177 void EnsureBackbuffer() override {} |
| 178 | 178 |
| 179 void DiscardBackbuffer() override { | 179 void DiscardBackbuffer() override { |
| 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 SetDrawRectangle(const gfx::Rect& rect) override {} |
| 188 |
| 187 void Reshape(const gfx::Size& size, | 189 void Reshape(const gfx::Size& size, |
| 188 float device_scale_factor, | 190 float device_scale_factor, |
| 189 const gfx::ColorSpace& color_space, | 191 const gfx::ColorSpace& color_space, |
| 190 bool has_alpha, | 192 bool has_alpha, |
| 191 bool use_stencil) override { | 193 bool use_stencil) override { |
| 192 context_provider()->ContextGL()->ResizeCHROMIUM( | 194 context_provider()->ContextGL()->ResizeCHROMIUM( |
| 193 size.width(), size.height(), device_scale_factor, has_alpha); | 195 size.width(), size.height(), device_scale_factor, has_alpha); |
| 194 } | 196 } |
| 195 | 197 |
| 196 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override { | 198 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override { |
| (...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 762 ui::ContextProviderFactory::GetInstance() | 764 ui::ContextProviderFactory::GetInstance() |
| 763 ->GetSurfaceManager() | 765 ->GetSurfaceManager() |
| 764 ->UnregisterFrameSinkHierarchy(frame_sink_id_, frame_sink_id); | 766 ->UnregisterFrameSinkHierarchy(frame_sink_id_, frame_sink_id); |
| 765 } | 767 } |
| 766 | 768 |
| 767 bool CompositorImpl::HavePendingReadbacks() { | 769 bool CompositorImpl::HavePendingReadbacks() { |
| 768 return !readback_layer_tree_->children().empty(); | 770 return !readback_layer_tree_->children().empty(); |
| 769 } | 771 } |
| 770 | 772 |
| 771 } // namespace content | 773 } // namespace content |
| OLD | NEW |