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

Side by Side Diff: cc/output/overlay_unittest.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
« no previous file with comments | « cc/output/output_surface.h ('k') | cc/output/renderer_pixeltest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // OutputSurface implementation. 155 // OutputSurface implementation.
156 void BindToClient(OutputSurfaceClient* client) override {} 156 void BindToClient(OutputSurfaceClient* client) override {}
157 void EnsureBackbuffer() override {} 157 void EnsureBackbuffer() override {}
158 void DiscardBackbuffer() override {} 158 void DiscardBackbuffer() override {}
159 void BindFramebuffer() override { 159 void BindFramebuffer() override {
160 bind_framebuffer_count_ += 1; 160 bind_framebuffer_count_ += 1;
161 } 161 }
162 void Reshape(const gfx::Size& size, 162 void Reshape(const gfx::Size& size,
163 float device_scale_factor, 163 float device_scale_factor,
164 const gfx::ColorSpace& color_space, 164 const gfx::ColorSpace& color_space,
165 bool has_alpha) override {} 165 bool has_alpha,
166 bool use_stencil) override {}
166 void SwapBuffers(OutputSurfaceFrame frame) override {} 167 void SwapBuffers(OutputSurfaceFrame frame) override {}
167 uint32_t GetFramebufferCopyTextureFormat() override { 168 uint32_t GetFramebufferCopyTextureFormat() override {
168 // TestContextProvider has no real framebuffer, just use RGB. 169 // TestContextProvider has no real framebuffer, just use RGB.
169 return GL_RGB; 170 return GL_RGB;
170 } 171 }
171 bool HasExternalStencilTest() const override { return false; } 172 bool HasExternalStencilTest() const override { return false; }
172 void ApplyExternalStencil() override {} 173 void ApplyExternalStencil() override {}
173 OverlayCandidateValidator* GetOverlayCandidateValidator() const override { 174 OverlayCandidateValidator* GetOverlayCandidateValidator() const override {
174 return overlay_candidate_validator_.get(); 175 return overlay_candidate_validator_.get();
175 } 176 }
(...skipping 1810 matching lines...) Expand 10 before | Expand all | Expand 10 after
1986 kOverlayRect, render_pass_id_, 2, gfx::Vector2dF(), 1987 kOverlayRect, render_pass_id_, 2, gfx::Vector2dF(),
1987 gfx::Size(), gfx::Vector2dF(1, 1), gfx::PointF()); 1988 gfx::Size(), gfx::Vector2dF(1, 1), gfx::PointF());
1988 } 1989 }
1989 1990
1990 ProcessForOverlays(); 1991 ProcessForOverlays();
1991 EXPECT_EQ(0U, ca_layer_list_.size()); 1992 EXPECT_EQ(0U, ca_layer_list_.size());
1992 } 1993 }
1993 1994
1994 } // namespace 1995 } // namespace
1995 } // namespace cc 1996 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/output_surface.h ('k') | cc/output/renderer_pixeltest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698