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

Side by Side Diff: cc/surfaces/surface_display_output_surface.h

Issue 1892303003: Added the Vulkan Context Provider implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed gyp file 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_ 5 #ifndef CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_
6 #define CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_ 6 #define CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "cc/output/output_surface.h" 9 #include "cc/output/output_surface.h"
10 #include "cc/surfaces/surface_factory.h" 10 #include "cc/surfaces/surface_factory.h"
(...skipping 12 matching lines...) Expand all
23 class CC_SURFACES_EXPORT SurfaceDisplayOutputSurface 23 class CC_SURFACES_EXPORT SurfaceDisplayOutputSurface
24 : public OutputSurface, 24 : public OutputSurface,
25 public SurfaceFactoryClient { 25 public SurfaceFactoryClient {
26 public: 26 public:
27 // The underlying Display and SurfaceManager must outlive this class. 27 // The underlying Display and SurfaceManager must outlive this class.
28 SurfaceDisplayOutputSurface( 28 SurfaceDisplayOutputSurface(
29 SurfaceManager* surface_manager, 29 SurfaceManager* surface_manager,
30 SurfaceIdAllocator* allocator, 30 SurfaceIdAllocator* allocator,
31 scoped_refptr<ContextProvider> context_provider, 31 scoped_refptr<ContextProvider> context_provider,
32 scoped_refptr<ContextProvider> worker_context_provider); 32 scoped_refptr<ContextProvider> worker_context_provider);
33 #if defined(ENABLE_VULKAN)
piman 2016/04/19 23:42:02 Thinking, this may be better without ifdef too.
David Yen 2016/04/20 17:37:38 Done.
34 SurfaceDisplayOutputSurface(
35 SurfaceManager* surface_manager,
36 SurfaceIdAllocator* allocator,
37 scoped_refptr<VulkanContextProvider> vulkan_context_provider);
38 #endif
33 ~SurfaceDisplayOutputSurface() override; 39 ~SurfaceDisplayOutputSurface() override;
34 40
35 void set_display_client(OnscreenDisplayClient* display_client) { 41 void set_display_client(OnscreenDisplayClient* display_client) {
36 DCHECK(!display_client_); 42 DCHECK(!display_client_);
37 display_client_ = display_client; 43 display_client_ = display_client;
38 } 44 }
39 SurfaceFactory* factory() { return &factory_; } 45 SurfaceFactory* factory() { return &factory_; }
40 46
41 // OutputSurface implementation. 47 // OutputSurface implementation.
42 void SwapBuffers(CompositorFrame* frame) override; 48 void SwapBuffers(CompositorFrame* frame) override;
(...skipping 13 matching lines...) Expand all
56 gfx::Size display_size_; 62 gfx::Size display_size_;
57 SurfaceId surface_id_; 63 SurfaceId surface_id_;
58 SurfaceIdAllocator* allocator_; 64 SurfaceIdAllocator* allocator_;
59 65
60 DISALLOW_COPY_AND_ASSIGN(SurfaceDisplayOutputSurface); 66 DISALLOW_COPY_AND_ASSIGN(SurfaceDisplayOutputSurface);
61 }; 67 };
62 68
63 } // namespace cc 69 } // namespace cc
64 70
65 #endif // CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_ 71 #endif // CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698