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

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

Issue 2646243002: Use IDCompositionSurface to implement DirectCompositionSurfaceWin. (Closed)
Patch Set: rebase Created 3 years, 9 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/test/fake_output_surface.h » ('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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 is_displayed_as_overlay_plane_ = true; 165 is_displayed_as_overlay_plane_ = true;
166 } 166 }
167 167
168 // OutputSurface implementation. 168 // OutputSurface implementation.
169 void BindToClient(OutputSurfaceClient* client) override {} 169 void BindToClient(OutputSurfaceClient* client) override {}
170 void EnsureBackbuffer() override {} 170 void EnsureBackbuffer() override {}
171 void DiscardBackbuffer() override {} 171 void DiscardBackbuffer() override {}
172 void BindFramebuffer() override { 172 void BindFramebuffer() override {
173 bind_framebuffer_count_ += 1; 173 bind_framebuffer_count_ += 1;
174 } 174 }
175 void SetDrawRectangle(const gfx::Rect& rect) override {}
175 void Reshape(const gfx::Size& size, 176 void Reshape(const gfx::Size& size,
176 float device_scale_factor, 177 float device_scale_factor,
177 const gfx::ColorSpace& color_space, 178 const gfx::ColorSpace& color_space,
178 bool has_alpha, 179 bool has_alpha,
179 bool use_stencil) override {} 180 bool use_stencil) override {}
180 void SwapBuffers(OutputSurfaceFrame frame) override {} 181 void SwapBuffers(OutputSurfaceFrame frame) override {}
181 uint32_t GetFramebufferCopyTextureFormat() override { 182 uint32_t GetFramebufferCopyTextureFormat() override {
182 // TestContextProvider has no real framebuffer, just use RGB. 183 // TestContextProvider has no real framebuffer, just use RGB.
183 return GL_RGB; 184 return GL_RGB;
184 } 185 }
(...skipping 2105 matching lines...) Expand 10 before | Expand all | Expand 10 after
2290 kOverlayRect, render_pass_id_, 2, gfx::RectF(), gfx::Size(), 2291 kOverlayRect, render_pass_id_, 2, gfx::RectF(), gfx::Size(),
2291 gfx::Vector2dF(1, 1), gfx::PointF(), gfx::RectF()); 2292 gfx::Vector2dF(1, 1), gfx::PointF(), gfx::RectF());
2292 } 2293 }
2293 2294
2294 ProcessForOverlays(); 2295 ProcessForOverlays();
2295 EXPECT_EQ(0U, ca_layer_list_.size()); 2296 EXPECT_EQ(0U, ca_layer_list_.size());
2296 } 2297 }
2297 2298
2298 } // namespace 2299 } // namespace
2299 } // namespace cc 2300 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/output_surface.h ('k') | cc/test/fake_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698