Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: content/browser/renderer_host/compositor_impl_android.cc

Issue 2612023002: cc: Implement overdraw feedback debugging feature. (Closed)
Patch Set: make sure overdraw_feedback_ is initialized and reset properly Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698