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

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

Issue 2646243002: Use IDCompositionSurface to implement DirectCompositionSurfaceWin. (Closed)
Patch Set: rebase 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 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 OutputSurfaceFrame* last_sent_frame() { return last_sent_frame_.get(); } 56 OutputSurfaceFrame* last_sent_frame() { return last_sent_frame_.get(); }
57 size_t num_sent_frames() { return num_sent_frames_; } 57 size_t num_sent_frames() { return num_sent_frames_; }
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 SetDrawRectangle(const gfx::Rect& rect) override {}
65 void Reshape(const gfx::Size& size, 66 void Reshape(const gfx::Size& size,
66 float device_scale_factor, 67 float device_scale_factor,
67 const gfx::ColorSpace& color_space, 68 const gfx::ColorSpace& color_space,
68 bool has_alpha, 69 bool has_alpha,
69 bool use_stencil) override; 70 bool use_stencil) override;
70 void SwapBuffers(OutputSurfaceFrame frame) override; 71 void SwapBuffers(OutputSurfaceFrame frame) override;
71 uint32_t GetFramebufferCopyTextureFormat() override; 72 uint32_t GetFramebufferCopyTextureFormat() override;
72 bool HasExternalStencilTest() const override; 73 bool HasExternalStencilTest() const override;
73 void ApplyExternalStencil() override {} 74 void ApplyExternalStencil() override {}
74 bool SurfaceIsSuspendForRecycle() const override; 75 bool SurfaceIsSuspendForRecycle() const override;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 122
122 private: 123 private:
123 void SwapBuffersAck(); 124 void SwapBuffersAck();
124 125
125 base::WeakPtrFactory<FakeOutputSurface> weak_ptr_factory_; 126 base::WeakPtrFactory<FakeOutputSurface> weak_ptr_factory_;
126 }; 127 };
127 128
128 } // namespace cc 129 } // namespace cc
129 130
130 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ 131 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698