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

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

Issue 12378053: Move Mailbox from cc to gpu, and its traits to gpu/ipc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ios hate Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « content/content_tests.gypi ('k') | content/renderer/gpu/mailbox_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 (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/transferable_resource.h" 10 #include "cc/transferable_resource.h"
(...skipping 29 matching lines...) Expand all
40 private: 40 private:
41 // CompositorOutputSurface overrides. 41 // CompositorOutputSurface overrides.
42 virtual void OnSwapAck(const cc::CompositorFrameAck& ack) OVERRIDE; 42 virtual void OnSwapAck(const cc::CompositorFrameAck& ack) OVERRIDE;
43 43
44 struct TransferableFrame 44 struct TransferableFrame
45 { 45 {
46 TransferableFrame() 46 TransferableFrame()
47 : texture_id(0) {} 47 : texture_id(0) {}
48 48
49 TransferableFrame(uint32 texture_id, 49 TransferableFrame(uint32 texture_id,
50 const cc::Mailbox& mailbox, 50 const gpu::Mailbox& mailbox,
51 const gfx::Size size) 51 const gfx::Size size)
52 : texture_id(texture_id), 52 : texture_id(texture_id),
53 mailbox(mailbox), 53 mailbox(mailbox),
54 size(size) {} 54 size(size) {}
55 55
56 uint32 texture_id; 56 uint32 texture_id;
57 cc::Mailbox mailbox; 57 gpu::Mailbox mailbox;
58 gfx::Size size; 58 gfx::Size size;
59 }; 59 };
60 TransferableFrame current_backing_; 60 TransferableFrame current_backing_;
61 std::queue<TransferableFrame> returned_textures_; 61 std::queue<TransferableFrame> returned_textures_;
62 62
63 gfx::Size size_; 63 gfx::Size size_;
64 uint32 fbo_; 64 uint32 fbo_;
65 }; 65 };
66 66
67 } // namespace content 67 } // namespace content
68 68
69 #endif // CONTENT_RENDERER_GPU_MAILBOX_OUTPUT_SURFACE_H_ 69 #endif // CONTENT_RENDERER_GPU_MAILBOX_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | content/renderer/gpu/mailbox_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698