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

Side by Side Diff: content/renderer/gpu/mailbox_output_surface.h

Issue 142863008: Revert of [#7] Pass gfx structs by const ref (gfx::Size) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CONTENT_RENDERER_GPU_MAILBOX_OUTPUT_SURFACE_H_ 5 #ifndef CONTENT_RENDERER_GPU_MAILBOX_OUTPUT_SURFACE_H_
6 #define CONTENT_RENDERER_GPU_MAILBOX_OUTPUT_SURFACE_H_ 6 #define CONTENT_RENDERER_GPU_MAILBOX_OUTPUT_SURFACE_H_
7 7
8 #include <queue> 8 #include <queue>
9 9
10 #include "cc/resources/resource_format.h" 10 #include "cc/resources/resource_format.h"
(...skipping 17 matching lines...) Expand all
28 int32 routing_id, 28 int32 routing_id,
29 uint32 output_surface_id, 29 uint32 output_surface_id,
30 const scoped_refptr<ContextProviderCommandBuffer>& context_provider, 30 const scoped_refptr<ContextProviderCommandBuffer>& context_provider,
31 scoped_ptr<cc::SoftwareOutputDevice> software_device, 31 scoped_ptr<cc::SoftwareOutputDevice> software_device,
32 cc::ResourceFormat format); 32 cc::ResourceFormat format);
33 virtual ~MailboxOutputSurface(); 33 virtual ~MailboxOutputSurface();
34 34
35 // cc::OutputSurface implementation. 35 // cc::OutputSurface implementation.
36 virtual void EnsureBackbuffer() OVERRIDE; 36 virtual void EnsureBackbuffer() OVERRIDE;
37 virtual void DiscardBackbuffer() OVERRIDE; 37 virtual void DiscardBackbuffer() OVERRIDE;
38 virtual void Reshape(const gfx::Size& size, float scale_factor) OVERRIDE; 38 virtual void Reshape(gfx::Size size, float scale_factor) OVERRIDE;
39 virtual void BindFramebuffer() OVERRIDE; 39 virtual void BindFramebuffer() OVERRIDE;
40 virtual void SwapBuffers(cc::CompositorFrame* frame) OVERRIDE; 40 virtual void SwapBuffers(cc::CompositorFrame* frame) OVERRIDE;
41 41
42 private: 42 private:
43 // CompositorOutputSurface overrides. 43 // CompositorOutputSurface overrides.
44 virtual void OnSwapAck(uint32 output_surface_id, 44 virtual void OnSwapAck(uint32 output_surface_id,
45 const cc::CompositorFrameAck& ack) OVERRIDE; 45 const cc::CompositorFrameAck& ack) OVERRIDE;
46 46
47 size_t GetNumAcksPending(); 47 size_t GetNumAcksPending();
48 48
(...skipping 16 matching lines...) Expand all
65 std::queue<TransferableFrame> returned_textures_; 65 std::queue<TransferableFrame> returned_textures_;
66 66
67 uint32 fbo_; 67 uint32 fbo_;
68 bool is_backbuffer_discarded_; 68 bool is_backbuffer_discarded_;
69 cc::ResourceFormat format_; 69 cc::ResourceFormat format_;
70 }; 70 };
71 71
72 } // namespace content 72 } // namespace content
73 73
74 #endif // CONTENT_RENDERER_GPU_MAILBOX_OUTPUT_SURFACE_H_ 74 #endif // CONTENT_RENDERER_GPU_MAILBOX_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/compositor_software_output_device.cc ('k') | content/renderer/gpu/mailbox_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698