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

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

Issue 2374183006: Remove GLFrameData from CompositorFrame. (Closed)
Patch Set: Rebase + fix includes. Created 4 years, 2 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 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 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "cc/base/region.h" 10 #include "cc/base/region.h"
11 #include "cc/output/ca_layer_overlay.h" 11 #include "cc/output/ca_layer_overlay.h"
12 #include "cc/output/compositor_frame.h"
13 #include "cc/output/compositor_frame_metadata.h" 12 #include "cc/output/compositor_frame_metadata.h"
14 #include "cc/output/filter_operation.h" 13 #include "cc/output/filter_operation.h"
15 #include "cc/output/gl_renderer.h" 14 #include "cc/output/gl_renderer.h"
16 #include "cc/output/output_surface.h" 15 #include "cc/output/output_surface.h"
17 #include "cc/output/output_surface_client.h" 16 #include "cc/output/output_surface_client.h"
18 #include "cc/output/overlay_candidate_validator.h" 17 #include "cc/output/overlay_candidate_validator.h"
19 #include "cc/output/overlay_processor.h" 18 #include "cc/output/overlay_processor.h"
20 #include "cc/output/overlay_strategy_fullscreen.h" 19 #include "cc/output/overlay_strategy_fullscreen.h"
21 #include "cc/output/overlay_strategy_single_on_top.h" 20 #include "cc/output/overlay_strategy_single_on_top.h"
22 #include "cc/output/overlay_strategy_underlay.h" 21 #include "cc/output/overlay_strategy_underlay.h"
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // OutputSurface implementation. 158 // OutputSurface implementation.
160 void EnsureBackbuffer() override {} 159 void EnsureBackbuffer() override {}
161 void DiscardBackbuffer() override {} 160 void DiscardBackbuffer() override {}
162 void BindFramebuffer() override { 161 void BindFramebuffer() override {
163 bind_framebuffer_count_ += 1; 162 bind_framebuffer_count_ += 1;
164 } 163 }
165 uint32_t GetFramebufferCopyTextureFormat() override { 164 uint32_t GetFramebufferCopyTextureFormat() override {
166 // TestContextProvider has no real framebuffer, just use RGB. 165 // TestContextProvider has no real framebuffer, just use RGB.
167 return GL_RGB; 166 return GL_RGB;
168 } 167 }
169 void SwapBuffers(CompositorFrame frame) override { 168 void SwapBuffers(OutputSurfaceFrame frame) override {}
170 }
171 bool HasExternalStencilTest() const override { return false; } 169 bool HasExternalStencilTest() const override { return false; }
172 void ApplyExternalStencil() override {} 170 void ApplyExternalStencil() override {}
173 OverlayCandidateValidator* GetOverlayCandidateValidator() const override { 171 OverlayCandidateValidator* GetOverlayCandidateValidator() const override {
174 return overlay_candidate_validator_.get(); 172 return overlay_candidate_validator_.get();
175 } 173 }
176 bool IsDisplayedAsOverlayPlane() const override { 174 bool IsDisplayedAsOverlayPlane() const override {
177 return is_displayed_as_overlay_plane_; 175 return is_displayed_as_overlay_plane_;
178 } 176 }
179 unsigned GetOverlayTextureId() const override { return 10000; } 177 unsigned GetOverlayTextureId() const override { return 10000; }
180 void set_is_displayed_as_overlay_plane(bool value) { 178 void set_is_displayed_as_overlay_plane(bool value) {
(...skipping 1718 matching lines...) Expand 10 before | Expand all | Expand 10 after
1899 gfx::Size(), filters_, gfx::Vector2dF(1, 1), gfx::PointF(), 1897 gfx::Size(), filters_, gfx::Vector2dF(1, 1), gfx::PointF(),
1900 background_filters_); 1898 background_filters_);
1901 } 1899 }
1902 1900
1903 ProcessForOverlays(); 1901 ProcessForOverlays();
1904 EXPECT_EQ(0U, ca_layer_list_.size()); 1902 EXPECT_EQ(0U, ca_layer_list_.size());
1905 } 1903 }
1906 1904
1907 } // namespace 1905 } // namespace
1908 } // namespace cc 1906 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698