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

Side by Side Diff: cc/output/overlay_unittest.cc

Issue 2870253004: Remove |highp_threshold_min| from GLRenderer() (Closed)
Patch Set: Created 3 years, 7 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/gl_renderer_unittest.cc ('k') | cc/surfaces/display.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/containers/flat_map.h" 10 #include "base/containers/flat_map.h"
(...skipping 1969 matching lines...) Expand 10 before | Expand all | Expand 10 after
1980 // Quad isn't opaque, so underlying damage must remain the same. 1980 // Quad isn't opaque, so underlying damage must remain the same.
1981 EXPECT_EQ(gfx::Rect(1, 1, 10, 10), damage_rect_); 1981 EXPECT_EQ(gfx::Rect(1, 1, 10, 10), damage_rect_);
1982 } 1982 }
1983 } 1983 }
1984 1984
1985 class OverlayInfoRendererGL : public GLRenderer { 1985 class OverlayInfoRendererGL : public GLRenderer {
1986 public: 1986 public:
1987 OverlayInfoRendererGL(const RendererSettings* settings, 1987 OverlayInfoRendererGL(const RendererSettings* settings,
1988 OutputSurface* output_surface, 1988 OutputSurface* output_surface,
1989 ResourceProvider* resource_provider) 1989 ResourceProvider* resource_provider)
1990 : GLRenderer(settings, output_surface, resource_provider, NULL, 0), 1990 : GLRenderer(settings, output_surface, resource_provider, NULL),
1991 expect_overlays_(false) {} 1991 expect_overlays_(false) {}
1992 1992
1993 MOCK_METHOD2(DoDrawQuad, 1993 MOCK_METHOD2(DoDrawQuad,
1994 void(const DrawQuad* quad, const gfx::QuadF* draw_region)); 1994 void(const DrawQuad* quad, const gfx::QuadF* draw_region));
1995 1995
1996 void SetCurrentFrame(const DrawingFrame& frame) { 1996 void SetCurrentFrame(const DrawingFrame& frame) {
1997 SetCurrentFrameForTesting(frame); 1997 SetCurrentFrameForTesting(frame);
1998 } 1998 }
1999 1999
2000 using GLRenderer::BeginDrawingFrame; 2000 using GLRenderer::BeginDrawingFrame;
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
2633 kOverlayRect, render_pass_id_, 2, gfx::RectF(), gfx::Size(), 2633 kOverlayRect, render_pass_id_, 2, gfx::RectF(), gfx::Size(),
2634 gfx::Vector2dF(1, 1), gfx::PointF(), gfx::RectF()); 2634 gfx::Vector2dF(1, 1), gfx::PointF(), gfx::RectF());
2635 } 2635 }
2636 2636
2637 ProcessForOverlays(); 2637 ProcessForOverlays();
2638 EXPECT_EQ(0U, ca_layer_list_.size()); 2638 EXPECT_EQ(0U, ca_layer_list_.size());
2639 } 2639 }
2640 2640
2641 } // namespace 2641 } // namespace
2642 } // namespace cc 2642 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/surfaces/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698