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

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

Issue 15688002: Part 1/3 (compositor) of adding with device scale factor to transport surfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update Android build 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
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/output/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 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 virtual bool BindToClient(OutputSurfaceClient* client); 80 virtual bool BindToClient(OutputSurfaceClient* client);
81 81
82 // Sends frame data to the parent compositor. This should only be called when 82 // Sends frame data to the parent compositor. This should only be called when
83 // capabilities().has_parent_compositor. The implementation may destroy or 83 // capabilities().has_parent_compositor. The implementation may destroy or
84 // steal the contents of the CompositorFrame passed in. 84 // steal the contents of the CompositorFrame passed in.
85 virtual void SendFrameToParentCompositor(CompositorFrame* frame); 85 virtual void SendFrameToParentCompositor(CompositorFrame* frame);
86 86
87 virtual void EnsureBackbuffer(); 87 virtual void EnsureBackbuffer();
88 virtual void DiscardBackbuffer(); 88 virtual void DiscardBackbuffer();
89 89
90 virtual void Reshape(gfx::Size size); 90 virtual void Reshape(gfx::Size size, float scale_factor);
91 91
92 virtual void BindFramebuffer(); 92 virtual void BindFramebuffer();
93 93
94 virtual void PostSubBuffer(gfx::Rect rect, const LatencyInfo&); 94 virtual void PostSubBuffer(gfx::Rect rect, const LatencyInfo&);
95 virtual void SwapBuffers(const LatencyInfo&); 95 virtual void SwapBuffers(const LatencyInfo&);
96 96
97 // Notifies frame-rate smoothness preference. If true, all non-critical 97 // Notifies frame-rate smoothness preference. If true, all non-critical
98 // processing should be stopped, or lowered in priority. 98 // processing should be stopped, or lowered in priority.
99 virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) {} 99 virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) {}
100 100
(...skipping 11 matching lines...) Expand all
112 112
113 scoped_ptr<OutputSurfaceCallbacks> callbacks_; 113 scoped_ptr<OutputSurfaceCallbacks> callbacks_;
114 114
115 private: 115 private:
116 DISALLOW_COPY_AND_ASSIGN(OutputSurface); 116 DISALLOW_COPY_AND_ASSIGN(OutputSurface);
117 }; 117 };
118 118
119 } // namespace cc 119 } // namespace cc
120 120
121 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ 121 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/output/output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698