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

Side by Side Diff: content/test/mailbox_output_surface.h

Issue 2096493002: Make cc::CompositorFrames movable [Part 1 of 2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Dana's nits Created 4 years, 6 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CONTENT_TEST_MAILBOX_OUTPUT_SURFACE_H_ 5 #ifndef CONTENT_TEST_MAILBOX_OUTPUT_SURFACE_H_
6 #define CONTENT_TEST_MAILBOX_OUTPUT_SURFACE_H_ 6 #define CONTENT_TEST_MAILBOX_OUTPUT_SURFACE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 27 matching lines...) Expand all
38 ~MailboxOutputSurface() override; 38 ~MailboxOutputSurface() override;
39 39
40 // cc::OutputSurface implementation. 40 // cc::OutputSurface implementation.
41 bool BindToClient(cc::OutputSurfaceClient* client) override; 41 bool BindToClient(cc::OutputSurfaceClient* client) override;
42 void DetachFromClient() override; 42 void DetachFromClient() override;
43 void EnsureBackbuffer() override; 43 void EnsureBackbuffer() override;
44 void DiscardBackbuffer() override; 44 void DiscardBackbuffer() override;
45 void Reshape(const gfx::Size& size, float scale_factor, bool alpha) override; 45 void Reshape(const gfx::Size& size, float scale_factor, bool alpha) override;
46 void BindFramebuffer() override; 46 void BindFramebuffer() override;
47 uint32_t GetFramebufferCopyTextureFormat() override; 47 uint32_t GetFramebufferCopyTextureFormat() override;
48 void SwapBuffers(cc::CompositorFrame* frame) override; 48 void SwapBuffers(cc::CompositorFrame frame) override;
49 49
50 private: 50 private:
51 void ShortcutSwapAck(uint32_t output_surface_id, 51 void ShortcutSwapAck(uint32_t output_surface_id,
52 std::unique_ptr<cc::GLFrameData> gl_frame_data); 52 std::unique_ptr<cc::GLFrameData> gl_frame_data);
53 void OnSwapAck(uint32_t output_surface_id, const cc::CompositorFrameAck& ack); 53 void OnSwapAck(uint32_t output_surface_id, const cc::CompositorFrameAck& ack);
54 54
55 size_t GetNumAcksPending(); 55 size_t GetNumAcksPending();
56 56
57 struct TransferableFrame { 57 struct TransferableFrame {
58 TransferableFrame(); 58 TransferableFrame();
(...skipping 16 matching lines...) Expand all
75 uint32_t fbo_; 75 uint32_t fbo_;
76 bool is_backbuffer_discarded_; 76 bool is_backbuffer_discarded_;
77 77
78 std::unique_ptr<cc::CompositorFrameAck> previous_frame_ack_; 78 std::unique_ptr<cc::CompositorFrameAck> previous_frame_ack_;
79 base::WeakPtrFactory<MailboxOutputSurface> weak_ptrs_; 79 base::WeakPtrFactory<MailboxOutputSurface> weak_ptrs_;
80 }; 80 };
81 81
82 } // namespace content 82 } // namespace content
83 83
84 #endif // CONTENT_TEST_MAILBOX_OUTPUT_SURFACE_H_ 84 #endif // CONTENT_TEST_MAILBOX_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/compositor_output_surface.cc ('k') | content/test/mailbox_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698