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

Side by Side Diff: cc/test/fake_output_surface.h

Issue 2399983003: cc: Make OutputSurface::Reshape abstract (Closed)
Patch Set: reshapeabstract: . 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
« no previous file with comments | « cc/output/software_output_device.cc ('k') | cc/test/fake_output_surface.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #ifndef CC_TEST_FAKE_OUTPUT_SURFACE_H_ 5 #ifndef CC_TEST_FAKE_OUTPUT_SURFACE_H_
6 #define CC_TEST_FAKE_OUTPUT_SURFACE_H_ 6 #define CC_TEST_FAKE_OUTPUT_SURFACE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 OutputSurfaceFrame* last_sent_frame() { return last_sent_frame_.get(); } 67 OutputSurfaceFrame* last_sent_frame() { return last_sent_frame_.get(); }
68 size_t num_sent_frames() { return num_sent_frames_; } 68 size_t num_sent_frames() { return num_sent_frames_; }
69 69
70 OutputSurfaceClient* client() { return client_; } 70 OutputSurfaceClient* client() { return client_; }
71 71
72 bool BindToClient(OutputSurfaceClient* client) override; 72 bool BindToClient(OutputSurfaceClient* client) override;
73 void EnsureBackbuffer() override {} 73 void EnsureBackbuffer() override {}
74 void DiscardBackbuffer() override {} 74 void DiscardBackbuffer() override {}
75 void BindFramebuffer() override; 75 void BindFramebuffer() override;
76 void Reshape(const gfx::Size& size,
77 float device_scale_factor,
78 const gfx::ColorSpace& color_space,
79 bool has_alpha) override;
76 void SwapBuffers(OutputSurfaceFrame frame) override; 80 void SwapBuffers(OutputSurfaceFrame frame) override;
77 uint32_t GetFramebufferCopyTextureFormat() override; 81 uint32_t GetFramebufferCopyTextureFormat() override;
78 bool HasExternalStencilTest() const override; 82 bool HasExternalStencilTest() const override;
79 void ApplyExternalStencil() override {} 83 void ApplyExternalStencil() override {}
80 bool SurfaceIsSuspendForRecycle() const override; 84 bool SurfaceIsSuspendForRecycle() const override;
81 OverlayCandidateValidator* GetOverlayCandidateValidator() const override; 85 OverlayCandidateValidator* GetOverlayCandidateValidator() const override;
82 bool IsDisplayedAsOverlayPlane() const override; 86 bool IsDisplayedAsOverlayPlane() const override;
83 unsigned GetOverlayTextureId() const override; 87 unsigned GetOverlayTextureId() const override;
84 88
85 void set_framebuffer(GLint framebuffer, GLenum format) { 89 void set_framebuffer(GLint framebuffer, GLenum format) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 GLint framebuffer_ = 0; 121 GLint framebuffer_ = 0;
118 GLenum framebuffer_format_ = 0; 122 GLenum framebuffer_format_ = 0;
119 OverlayCandidateValidator* overlay_candidate_validator_ = nullptr; 123 OverlayCandidateValidator* overlay_candidate_validator_ = nullptr;
120 bool last_swap_rect_valid_ = false; 124 bool last_swap_rect_valid_ = false;
121 gfx::Rect last_swap_rect_; 125 gfx::Rect last_swap_rect_;
122 }; 126 };
123 127
124 } // namespace cc 128 } // namespace cc
125 129
126 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ 130 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « cc/output/software_output_device.cc ('k') | cc/test/fake_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698