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

Side by Side Diff: content/browser/compositor/buffer_queue.h

Issue 781683005: Ozone: Avoid blocking in Swapbuffer Call. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comments. Created 6 years 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 CONTENT_BROWSER_COMPOSITOR_BUFFERED_OUTPUT_SURFACE_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_BUFFERED_OUTPUT_SURFACE_H_
6 #define CONTENT_BROWSER_COMPOSITOR_BUFFERED_OUTPUT_SURFACE_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_BUFFERED_OUTPUT_SURFACE_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 AllocatedSurface GetNextSurface(); 73 AllocatedSurface GetNextSurface();
74 74
75 gfx::Size size_; 75 gfx::Size size_;
76 scoped_refptr<cc::ContextProvider> context_provider_; 76 scoped_refptr<cc::ContextProvider> context_provider_;
77 unsigned int fbo_; 77 unsigned int fbo_;
78 size_t allocated_count_; 78 size_t allocated_count_;
79 unsigned int internalformat_; 79 unsigned int internalformat_;
80 AllocatedSurface current_surface_; // This surface is currently bound. 80 AllocatedSurface current_surface_; // This surface is currently bound.
81 std::vector<AllocatedSurface> available_surfaces_; // These are free for use. 81 std::vector<AllocatedSurface> available_surfaces_; // These are free for use.
82 std::deque<AllocatedSurface> in_flight_surfaces_; 82 std::deque<AllocatedSurface> in_flight_surfaces_;
83 std::deque<AllocatedSurface> display_queue_surfaces_;
83 GLHelper* gl_helper_; 84 GLHelper* gl_helper_;
84 85
85 DISALLOW_COPY_AND_ASSIGN(BufferQueue); 86 DISALLOW_COPY_AND_ASSIGN(BufferQueue);
86 }; 87 };
87 88
88 } // namespace content 89 } // namespace content
89 90
90 #endif // CONTENT_BROWSER_COMPOSITOR_BUFFERED_OUTPUT_SURFACE_H_ 91 #endif // CONTENT_BROWSER_COMPOSITOR_BUFFERED_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/compositor/buffer_queue.cc » ('j') | content/browser/compositor/buffer_queue.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698