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

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

Issue 889063002: (not for commit) Create 2nd ContextProvider for Ganesh rasterization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 12 matching lines...) Expand all
23 // Implementation of CompositorOutputSurface that renders to textures which 23 // Implementation of CompositorOutputSurface that renders to textures which
24 // are sent to the browser through the mailbox extension. 24 // are sent to the browser through the mailbox extension.
25 // This class can be created only on the main thread, but then becomes pinned 25 // This class can be created only on the main thread, but then becomes pinned
26 // to a fixed thread when bindToClient is called. 26 // to a fixed thread when bindToClient is called.
27 class MailboxOutputSurface : public CompositorOutputSurface { 27 class MailboxOutputSurface : public CompositorOutputSurface {
28 public: 28 public:
29 MailboxOutputSurface( 29 MailboxOutputSurface(
30 int32 routing_id, 30 int32 routing_id,
31 uint32 output_surface_id, 31 uint32 output_surface_id,
32 const scoped_refptr<ContextProviderCommandBuffer>& context_provider, 32 const scoped_refptr<ContextProviderCommandBuffer>& context_provider,
33 const scoped_refptr<ContextProviderCommandBuffer>&
34 worker_context_provider,
33 scoped_ptr<cc::SoftwareOutputDevice> software_device, 35 scoped_ptr<cc::SoftwareOutputDevice> software_device,
34 scoped_refptr<FrameSwapMessageQueue> swap_frame_message_queue, 36 scoped_refptr<FrameSwapMessageQueue> swap_frame_message_queue,
35 cc::ResourceFormat format); 37 cc::ResourceFormat format);
36 ~MailboxOutputSurface() override; 38 ~MailboxOutputSurface() override;
37 39
38 // cc::OutputSurface implementation. 40 // cc::OutputSurface implementation.
39 void EnsureBackbuffer() override; 41 void EnsureBackbuffer() override;
40 void DiscardBackbuffer() override; 42 void DiscardBackbuffer() override;
41 void Reshape(const gfx::Size& size, float scale_factor) override; 43 void Reshape(const gfx::Size& size, float scale_factor) override;
42 void BindFramebuffer() override; 44 void BindFramebuffer() override;
(...skipping 25 matching lines...) Expand all
68 std::queue<TransferableFrame> returned_textures_; 70 std::queue<TransferableFrame> returned_textures_;
69 71
70 uint32 fbo_; 72 uint32 fbo_;
71 bool is_backbuffer_discarded_; 73 bool is_backbuffer_discarded_;
72 cc::ResourceFormat format_; 74 cc::ResourceFormat format_;
73 }; 75 };
74 76
75 } // namespace content 77 } // namespace content
76 78
77 #endif // CONTENT_RENDERER_GPU_MAILBOX_OUTPUT_SURFACE_H_ 79 #endif // CONTENT_RENDERER_GPU_MAILBOX_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/delegated_compositor_output_surface.cc ('k') | content/renderer/gpu/mailbox_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698