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

Side by Side Diff: cc/output_surface.h

Issue 12789008: Revert 189176 "Manually merge 188038" (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1410/src/
Patch Set: 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') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Deleted: svn:mergeinfo
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 "cc/cc_export.h" 10 #include "cc/cc_export.h"
(...skipping 21 matching lines...) Expand all
32 virtual ~OutputSurface() {} 32 virtual ~OutputSurface() {}
33 33
34 // Called by the compositor on the compositor thread. This is a place where 34 // Called by the compositor on the compositor thread. This is a place where
35 // thread-specific data for the output surface can be initialized, since from 35 // thread-specific data for the output surface can be initialized, since from
36 // this point on the output surface will only be used on the compositor 36 // this point on the output surface will only be used on the compositor
37 // thread. 37 // thread.
38 virtual bool BindToClient(OutputSurfaceClient*) = 0; 38 virtual bool BindToClient(OutputSurfaceClient*) = 0;
39 39
40 struct Capabilities { 40 struct Capabilities {
41 Capabilities() 41 Capabilities()
42 : has_parent_compositor(false), 42 : has_parent_compositor(false) {}
43 max_frames_pending(0) {}
44 43
45 bool has_parent_compositor; 44 bool has_parent_compositor;
46 int max_frames_pending;
47 }; 45 };
48 46
49 virtual const Capabilities& Capabilities() const = 0; 47 virtual const Capabilities& Capabilities() const = 0;
50 48
51 // Obtain the 3d context or the software device associated with this output 49 // Obtain the 3d context or the software device associated with this output
52 // surface. Either of these may return a null pointer, but not both. 50 // surface. Either of these may return a null pointer, but not both.
53 // In the event of a lost context, the entire output surface should be 51 // In the event of a lost context, the entire output surface should be
54 // recreated. 52 // recreated.
55 virtual WebKit::WebGraphicsContext3D* Context3D() const = 0; 53 virtual WebKit::WebGraphicsContext3D* Context3D() const = 0;
56 virtual SoftwareOutputDevice* SoftwareDevice() const = 0; 54 virtual SoftwareOutputDevice* SoftwareDevice() const = 0;
57 55
58 // Sends frame data to the parent compositor. This should only be called when 56 // Sends frame data to the parent compositor. This should only be called when
59 // capabilities().has_parent_compositor. The implementation may destroy or 57 // capabilities().has_parent_compositor. The implementation may destroy or
60 // steal the contents of the CompositorFrame passed in. 58 // steal the contents of the CompositorFrame passed in.
61 virtual void SendFrameToParentCompositor(CompositorFrame*) = 0; 59 virtual void SendFrameToParentCompositor(CompositorFrame*) = 0;
62 60
63 // Notifies frame-rate smoothness preference. If true, all non-critical 61 // Notifies frame-rate smoothness preference. If true, all non-critical
64 // processing should be stopped, or lowered in priority. 62 // processing should be stopped, or lowered in priority.
65 virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) {} 63 virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) {}
66 }; 64 };
67 65
68 } // namespace cc 66 } // namespace cc
69 67
70 #endif // CC_OUTPUT_SURFACE_H_ 68 #endif // CC_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « no previous file | cc/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698