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

Side by Side Diff: content/browser/compositor/offscreen_browser_compositor_output_surface.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/compositor/offscreen_browser_compositor_output_surface .h" 5 #include "content/browser/compositor/offscreen_browser_compositor_output_surface .h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 gl->BindFramebuffer(GL_FRAMEBUFFER, fbo_); 104 gl->BindFramebuffer(GL_FRAMEBUFFER, fbo_);
105 gl->DeleteFramebuffers(1, &fbo_); 105 gl->DeleteFramebuffers(1, &fbo_);
106 fbo_ = 0; 106 fbo_ = 0;
107 } 107 }
108 } 108 }
109 109
110 void OffscreenBrowserCompositorOutputSurface::Reshape( 110 void OffscreenBrowserCompositorOutputSurface::Reshape(
111 const gfx::Size& size, 111 const gfx::Size& size,
112 float scale_factor, 112 float scale_factor,
113 const gfx::ColorSpace& color_space, 113 const gfx::ColorSpace& color_space,
114 bool alpha) { 114 bool alpha,
115 bool stencil) {
115 reshape_size_ = size; 116 reshape_size_ = size;
116 DiscardBackbuffer(); 117 DiscardBackbuffer();
117 EnsureBackbuffer(); 118 EnsureBackbuffer();
118 } 119 }
119 120
120 void OffscreenBrowserCompositorOutputSurface::BindFramebuffer() { 121 void OffscreenBrowserCompositorOutputSurface::BindFramebuffer() {
121 bool need_to_bind = !!reflector_texture_.get(); 122 bool need_to_bind = !!reflector_texture_.get();
122 123
123 EnsureBackbuffer(); 124 EnsureBackbuffer();
124 DCHECK(reflector_texture_.get()); 125 DCHECK(reflector_texture_.get());
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 reflector_changed_ = true; 184 reflector_changed_ = true;
184 EnsureBackbuffer(); 185 EnsureBackbuffer();
185 } 186 }
186 } 187 }
187 188
188 void OffscreenBrowserCompositorOutputSurface::OnSwapBuffersComplete() { 189 void OffscreenBrowserCompositorOutputSurface::OnSwapBuffersComplete() {
189 client_->DidReceiveSwapBuffersAck(); 190 client_->DidReceiveSwapBuffersAck();
190 } 191 }
191 192
192 } // namespace content 193 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698