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

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

Issue 2089753003: cc: Use the correct internal format for glCopyTexImage2D calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: copytextureformat: comments Created 4 years, 6 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
« no previous file with comments | « cc/resources/resource_format.cc ('k') | cc/surfaces/surface_display_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 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 "base/threading/thread_checker.h" 9 #include "base/threading/thread_checker.h"
10 #include "cc/output/output_surface.h" 10 #include "cc/output/output_surface.h"
(...skipping 27 matching lines...) Expand all
38 SurfaceIdAllocator* allocator, 38 SurfaceIdAllocator* allocator,
39 Display* display, 39 Display* display,
40 scoped_refptr<VulkanContextProvider> vulkan_context_provider); 40 scoped_refptr<VulkanContextProvider> vulkan_context_provider);
41 ~SurfaceDisplayOutputSurface() override; 41 ~SurfaceDisplayOutputSurface() override;
42 42
43 // OutputSurface implementation. 43 // OutputSurface implementation.
44 void SwapBuffers(CompositorFrame* frame) override; 44 void SwapBuffers(CompositorFrame* frame) override;
45 bool BindToClient(OutputSurfaceClient* client) override; 45 bool BindToClient(OutputSurfaceClient* client) override;
46 void ForceReclaimResources() override; 46 void ForceReclaimResources() override;
47 void DetachFromClient() override; 47 void DetachFromClient() override;
48 void BindFramebuffer() override;
49 uint32_t GetFramebufferCopyTextureFormat() override;
48 50
49 // SurfaceFactoryClient implementation. 51 // SurfaceFactoryClient implementation.
50 void ReturnResources(const ReturnedResourceArray& resources) override; 52 void ReturnResources(const ReturnedResourceArray& resources) override;
51 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override; 53 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override;
52 54
53 // DisplayClient implementation. 55 // DisplayClient implementation.
54 void DisplayOutputSurfaceLost() override; 56 void DisplayOutputSurfaceLost() override;
55 void DisplaySetMemoryPolicy(const ManagedMemoryPolicy& policy) override; 57 void DisplaySetMemoryPolicy(const ManagedMemoryPolicy& policy) override;
56 58
57 private: 59 private:
58 void SwapBuffersComplete(SurfaceDrawStatus drawn); 60 void SwapBuffersComplete(SurfaceDrawStatus drawn);
59 61
60 // This class is only meant to be used on a single thread. 62 // This class is only meant to be used on a single thread.
61 base::ThreadChecker thread_checker_; 63 base::ThreadChecker thread_checker_;
62 64
63 SurfaceManager* surface_manager_; 65 SurfaceManager* surface_manager_;
64 SurfaceIdAllocator* surface_id_allocator_; 66 SurfaceIdAllocator* surface_id_allocator_;
65 Display* display_; 67 Display* display_;
66 SurfaceFactory factory_; 68 SurfaceFactory factory_;
67 SurfaceId delegated_surface_id_; 69 SurfaceId delegated_surface_id_;
68 gfx::Size last_swap_frame_size_; 70 gfx::Size last_swap_frame_size_;
69 bool output_surface_lost_ = false; 71 bool output_surface_lost_ = false;
70 72
71 DISALLOW_COPY_AND_ASSIGN(SurfaceDisplayOutputSurface); 73 DISALLOW_COPY_AND_ASSIGN(SurfaceDisplayOutputSurface);
72 }; 74 };
73 75
74 } // namespace cc 76 } // namespace cc
75 77
76 #endif // CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_ 78 #endif // CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « cc/resources/resource_format.cc ('k') | cc/surfaces/surface_display_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698