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

Side by Side Diff: cc/output/output_surface.h

Issue 14417014: cc: Add tile-free software compositing mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add tests and optimize quad generation Created 7 years, 7 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
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_OUTPUT_SURFACE_H_ 5 #ifndef CC_OUTPUT_OUTPUT_SURFACE_H_
6 #define CC_OUTPUT_OUTPUT_SURFACE_H_ 6 #define CC_OUTPUT_OUTPUT_SURFACE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // In the event of a lost context, the entire output surface should be 59 // In the event of a lost context, the entire output surface should be
60 // recreated. 60 // recreated.
61 WebKit::WebGraphicsContext3D* context3d() const { 61 WebKit::WebGraphicsContext3D* context3d() const {
62 return context3d_.get(); 62 return context3d_.get();
63 } 63 }
64 64
65 SoftwareOutputDevice* software_device() const { 65 SoftwareOutputDevice* software_device() const {
66 return software_device_.get(); 66 return software_device_.get();
67 } 67 }
68 68
69 // In the case where both the context3d and software_device are present
70 // (namely Android WebView), this is called to determine whether the software
71 // device should be used on the current frame.
72 virtual bool ForcedDrawToSoftwareDevice() const;
73
69 // Called by the compositor on the compositor thread. This is a place where 74 // Called by the compositor on the compositor thread. This is a place where
70 // thread-specific data for the output surface can be initialized, since from 75 // thread-specific data for the output surface can be initialized, since from
71 // this point on the output surface will only be used on the compositor 76 // this point on the output surface will only be used on the compositor
72 // thread. 77 // thread.
73 virtual bool BindToClient(OutputSurfaceClient* client); 78 virtual bool BindToClient(OutputSurfaceClient* client);
74 79
75 // Sends frame data to the parent compositor. This should only be called when 80 // Sends frame data to the parent compositor. This should only be called when
76 // capabilities().has_parent_compositor. The implementation may destroy or 81 // capabilities().has_parent_compositor. The implementation may destroy or
77 // steal the contents of the CompositorFrame passed in. 82 // steal the contents of the CompositorFrame passed in.
78 virtual void SendFrameToParentCompositor(CompositorFrame* frame); 83 virtual void SendFrameToParentCompositor(CompositorFrame* frame);
(...skipping 26 matching lines...) Expand all
105 110
106 scoped_ptr<OutputSurfaceCallbacks> callbacks_; 111 scoped_ptr<OutputSurfaceCallbacks> callbacks_;
107 112
108 private: 113 private:
109 DISALLOW_COPY_AND_ASSIGN(OutputSurface); 114 DISALLOW_COPY_AND_ASSIGN(OutputSurface);
110 }; 115 };
111 116
112 } // namespace cc 117 } // namespace cc
113 118
114 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ 119 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698