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

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

Issue 2646243002: Use IDCompositionSurface to implement DirectCompositionSurfaceWin. (Closed)
Patch Set: add unittest and move implementation around Created 3 years, 10 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 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 is_displayed_as_overlay_plane_ = true; 152 is_displayed_as_overlay_plane_ = true;
153 } 153 }
154 154
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 SetDrawRectangle(const gfx::Rect& rect) override {}
162 void Reshape(const gfx::Size& size, 163 void Reshape(const gfx::Size& size,
163 float device_scale_factor, 164 float device_scale_factor,
164 const gfx::ColorSpace& color_space, 165 const gfx::ColorSpace& color_space,
165 bool has_alpha, 166 bool has_alpha,
166 bool use_stencil) override {} 167 bool use_stencil) override {}
167 void SwapBuffers(OutputSurfaceFrame frame) override {} 168 void SwapBuffers(OutputSurfaceFrame frame) override {}
168 uint32_t GetFramebufferCopyTextureFormat() override { 169 uint32_t GetFramebufferCopyTextureFormat() override {
169 // TestContextProvider has no real framebuffer, just use RGB. 170 // TestContextProvider has no real framebuffer, just use RGB.
170 return GL_RGB; 171 return GL_RGB;
171 } 172 }
(...skipping 1846 matching lines...) Expand 10 before | Expand all | Expand 10 after
2018 kOverlayRect, render_pass_id_, 2, gfx::Vector2dF(), 2019 kOverlayRect, render_pass_id_, 2, gfx::Vector2dF(),
2019 gfx::Size(), gfx::Vector2dF(1, 1), gfx::PointF()); 2020 gfx::Size(), gfx::Vector2dF(1, 1), gfx::PointF());
2020 } 2021 }
2021 2022
2022 ProcessForOverlays(); 2023 ProcessForOverlays();
2023 EXPECT_EQ(0U, ca_layer_list_.size()); 2024 EXPECT_EQ(0U, ca_layer_list_.size());
2024 } 2025 }
2025 2026
2026 } // namespace 2027 } // namespace
2027 } // namespace cc 2028 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698