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

Unified Diff: cc/test/pixel_test_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/pixel_test_output_surface.h ('k') | chrome/app/generated_resources.grd » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/pixel_test_output_surface.cc
diff --git a/cc/test/pixel_test_output_surface.cc b/cc/test/pixel_test_output_surface.cc
index b32bff80e47b077df4c7f5d19e527c811dcb390e..3078fe5b694b3b0799efb6be8456c43a559b2acf 100644
--- a/cc/test/pixel_test_output_surface.cc
+++ b/cc/test/pixel_test_output_surface.cc
@@ -21,11 +21,14 @@ PixelTestOutputSurface::PixelTestOutputSurface(
bool flipped_output_surface)
: OutputSurface(std::move(context_provider)), weak_ptr_factory_(this) {
capabilities_.flipped_output_surface = flipped_output_surface;
+ capabilities_.supports_stencil = true;
}
PixelTestOutputSurface::PixelTestOutputSurface(
std::unique_ptr<SoftwareOutputDevice> software_device)
- : OutputSurface(std::move(software_device)), weak_ptr_factory_(this) {}
+ : OutputSurface(std::move(software_device)), weak_ptr_factory_(this) {
+ capabilities_.supports_stencil = true;
+}
PixelTestOutputSurface::~PixelTestOutputSurface() = default;
@@ -44,7 +47,10 @@ void PixelTestOutputSurface::BindFramebuffer() {
void PixelTestOutputSurface::Reshape(const gfx::Size& size,
float device_scale_factor,
const gfx::ColorSpace& color_space,
- bool has_alpha) {
+ bool has_alpha,
+ bool use_stencil) {
+ // External stencil test cannot be tested at the same time as |use_stencil|.
+ DCHECK(!use_stencil || !external_stencil_test_);
if (context_provider()) {
context_provider()->ContextGL()->ResizeCHROMIUM(
size.width(), size.height(), device_scale_factor, has_alpha);
« no previous file with comments | « cc/test/pixel_test_output_surface.h ('k') | chrome/app/generated_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698