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

Side by Side Diff: cc/output_surface.h

Issue 12540003: CrOS: Set max frames pending for UI from command line. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address reviewer comments. Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/thread_proxy.cc » ('j') | cc/thread_proxy.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 CC_OUTPUT_SURFACE_H_ 5 #ifndef CC_OUTPUT_SURFACE_H_
6 #define CC_OUTPUT_SURFACE_H_ 6 #define CC_OUTPUT_SURFACE_H_
7 7
8 #define USE_CC_OUTPUT_SURFACE // TODO(danakj): Remove this. 8 #define USE_CC_OUTPUT_SURFACE // TODO(danakj): Remove this.
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 26 matching lines...) Expand all
37 37
38 OutputSurface(scoped_ptr<cc::SoftwareOutputDevice> software_device); 38 OutputSurface(scoped_ptr<cc::SoftwareOutputDevice> software_device);
39 39
40 OutputSurface(scoped_ptr<WebKit::WebGraphicsContext3D> context3d, 40 OutputSurface(scoped_ptr<WebKit::WebGraphicsContext3D> context3d,
41 scoped_ptr<cc::SoftwareOutputDevice> software_device); 41 scoped_ptr<cc::SoftwareOutputDevice> software_device);
42 42
43 virtual ~OutputSurface(); 43 virtual ~OutputSurface();
44 44
45 struct Capabilities { 45 struct Capabilities {
46 Capabilities() 46 Capabilities()
47 : has_parent_compositor(false) {} 47 : has_parent_compositor(false),
48 max_frames_pending(0) {}
48 49
49 bool has_parent_compositor; 50 bool has_parent_compositor;
51 int max_frames_pending;
50 }; 52 };
51 53
52 const Capabilities& capabilities() const { 54 const Capabilities& capabilities() const {
53 return capabilities_; 55 return capabilities_;
54 } 56 }
55 57
56 // Obtain the 3d context or the software device associated with this output 58 // Obtain the 3d context or the software device associated with this output
57 // surface. Either of these may return a null pointer, but not both. 59 // surface. Either of these may return a null pointer, but not both.
58 // In the event of a lost context, the entire output surface should be 60 // In the event of a lost context, the entire output surface should be
59 // recreated. 61 // recreated.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 scoped_ptr<cc::SoftwareOutputDevice> software_device_; 99 scoped_ptr<cc::SoftwareOutputDevice> software_device_;
98 bool has_gl_discard_backbuffer_; 100 bool has_gl_discard_backbuffer_;
99 101
100 private: 102 private:
101 DISALLOW_COPY_AND_ASSIGN(OutputSurface); 103 DISALLOW_COPY_AND_ASSIGN(OutputSurface);
102 }; 104 };
103 105
104 } // namespace cc 106 } // namespace cc
105 107
106 #endif // CC_OUTPUT_SURFACE_H_ 108 #endif // CC_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « no previous file | cc/thread_proxy.cc » ('j') | cc/thread_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698