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

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

Issue 1892303003: Added the Vulkan Context Provider implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Export VulkanContextProvider Created 4 years, 8 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 #include "content/renderer/gpu/mailbox_output_surface.h" 5 #include "content/renderer/gpu/mailbox_output_surface.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "cc/output/compositor_frame.h" 8 #include "cc/output/compositor_frame.h"
9 #include "cc/output/compositor_frame_ack.h" 9 #include "cc/output/compositor_frame_ack.h"
10 #include "cc/output/gl_frame_data.h" 10 #include "cc/output/gl_frame_data.h"
(...skipping 15 matching lines...) Expand all
26 int32_t routing_id, 26 int32_t routing_id,
27 uint32_t output_surface_id, 27 uint32_t output_surface_id,
28 const scoped_refptr<ContextProviderCommandBuffer>& context_provider, 28 const scoped_refptr<ContextProviderCommandBuffer>& context_provider,
29 const scoped_refptr<ContextProviderCommandBuffer>& worker_context_provider, 29 const scoped_refptr<ContextProviderCommandBuffer>& worker_context_provider,
30 scoped_refptr<FrameSwapMessageQueue> swap_frame_message_queue, 30 scoped_refptr<FrameSwapMessageQueue> swap_frame_message_queue,
31 cc::ResourceFormat format) 31 cc::ResourceFormat format)
32 : CompositorOutputSurface(routing_id, 32 : CompositorOutputSurface(routing_id,
33 output_surface_id, 33 output_surface_id,
34 context_provider, 34 context_provider,
35 worker_context_provider, 35 worker_context_provider,
36 #if defined(ENABLE_VULKAN)
37 nullptr, 36 nullptr,
38 #endif
39 nullptr, 37 nullptr,
40 swap_frame_message_queue, 38 swap_frame_message_queue,
41 true), 39 true),
42 fbo_(0), 40 fbo_(0),
43 is_backbuffer_discarded_(false), 41 is_backbuffer_discarded_(false),
44 format_(format) { 42 format_(format) {
45 pending_textures_.push_back(TransferableFrame()); 43 pending_textures_.push_back(TransferableFrame());
46 capabilities_.uses_default_gl_framebuffer = false; 44 capabilities_.uses_default_gl_framebuffer = false;
47 } 45 }
48 46
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 230
233 MailboxOutputSurface::TransferableFrame::TransferableFrame() : texture_id(0) {} 231 MailboxOutputSurface::TransferableFrame::TransferableFrame() : texture_id(0) {}
234 232
235 MailboxOutputSurface::TransferableFrame::TransferableFrame( 233 MailboxOutputSurface::TransferableFrame::TransferableFrame(
236 uint32_t texture_id, 234 uint32_t texture_id,
237 const gpu::Mailbox& mailbox, 235 const gpu::Mailbox& mailbox,
238 const gfx::Size size) 236 const gfx::Size size)
239 : texture_id(texture_id), mailbox(mailbox), size(size) {} 237 : texture_id(texture_id), mailbox(mailbox), size(size) {}
240 238
241 } // namespace content 239 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/gpu/delegated_compositor_output_surface.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698