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

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

Issue 2612023002: cc: Implement overdraw feedback debugging feature. (Closed)
Patch Set: make sure overdraw_feedback_ is initialized and reset properly Created 3 years, 11 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/test/data/translucent_rectangles.png ('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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 OutputSurfaceClient* client() { return client_; } 59 OutputSurfaceClient* client() { return client_; }
60 60
61 void BindToClient(OutputSurfaceClient* client) override; 61 void BindToClient(OutputSurfaceClient* client) override;
62 void EnsureBackbuffer() override {} 62 void EnsureBackbuffer() override {}
63 void DiscardBackbuffer() override {} 63 void DiscardBackbuffer() override {}
64 void BindFramebuffer() override; 64 void BindFramebuffer() override;
65 void Reshape(const gfx::Size& size, 65 void Reshape(const gfx::Size& size,
66 float device_scale_factor, 66 float device_scale_factor,
67 const gfx::ColorSpace& color_space, 67 const gfx::ColorSpace& color_space,
68 bool has_alpha) override; 68 bool has_alpha,
69 bool use_stencil) override;
69 void SwapBuffers(OutputSurfaceFrame frame) override; 70 void SwapBuffers(OutputSurfaceFrame frame) override;
70 uint32_t GetFramebufferCopyTextureFormat() override; 71 uint32_t GetFramebufferCopyTextureFormat() override;
71 bool HasExternalStencilTest() const override; 72 bool HasExternalStencilTest() const override;
72 void ApplyExternalStencil() override {} 73 void ApplyExternalStencil() override {}
73 bool SurfaceIsSuspendForRecycle() const override; 74 bool SurfaceIsSuspendForRecycle() const override;
74 OverlayCandidateValidator* GetOverlayCandidateValidator() const override; 75 OverlayCandidateValidator* GetOverlayCandidateValidator() const override;
75 bool IsDisplayedAsOverlayPlane() const override; 76 bool IsDisplayedAsOverlayPlane() const override;
76 unsigned GetOverlayTextureId() const override; 77 unsigned GetOverlayTextureId() const override;
77 78
78 void set_framebuffer(GLint framebuffer, GLenum format) { 79 void set_framebuffer(GLint framebuffer, GLenum format) {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 116
116 private: 117 private:
117 void SwapBuffersAck(); 118 void SwapBuffersAck();
118 119
119 base::WeakPtrFactory<FakeOutputSurface> weak_ptr_factory_; 120 base::WeakPtrFactory<FakeOutputSurface> weak_ptr_factory_;
120 }; 121 };
121 122
122 } // namespace cc 123 } // namespace cc
123 124
124 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ 125 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « cc/test/data/translucent_rectangles.png ('k') | cc/test/fake_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698