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

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

Issue 1044093005: Preliminary compositor disabling patch. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove renderpass calculation Created 5 years, 8 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
« no previous file with comments | « cc/layers/video_layer_impl.cc ('k') | cc/output/direct_renderer.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_DIRECT_RENDERER_H_ 5 #ifndef CC_OUTPUT_DIRECT_RENDERER_H_
6 #define CC_OUTPUT_DIRECT_RENDERER_H_ 6 #define CC_OUTPUT_DIRECT_RENDERER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/containers/scoped_ptr_hash_map.h" 10 #include "base/containers/scoped_ptr_hash_map.h"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 const DrawQuad* quad, 121 const DrawQuad* quad,
122 const gfx::QuadF* clip_region) = 0; 122 const gfx::QuadF* clip_region) = 0;
123 virtual void BeginDrawingFrame(DrawingFrame* frame) = 0; 123 virtual void BeginDrawingFrame(DrawingFrame* frame) = 0;
124 virtual void FinishDrawingFrame(DrawingFrame* frame) = 0; 124 virtual void FinishDrawingFrame(DrawingFrame* frame) = 0;
125 virtual void FinishDrawingQuadList(); 125 virtual void FinishDrawingQuadList();
126 virtual bool FlippedFramebuffer(const DrawingFrame* frame) const = 0; 126 virtual bool FlippedFramebuffer(const DrawingFrame* frame) const = 0;
127 virtual void EnsureScissorTestEnabled() = 0; 127 virtual void EnsureScissorTestEnabled() = 0;
128 virtual void EnsureScissorTestDisabled() = 0; 128 virtual void EnsureScissorTestDisabled() = 0;
129 virtual void DiscardBackbuffer() {} 129 virtual void DiscardBackbuffer() {}
130 virtual void EnsureBackbuffer() {} 130 virtual void EnsureBackbuffer() {}
131 virtual void ScheduleOverlays(DrawingFrame* frame) {}
131 132
132 virtual void CopyCurrentRenderPassToBitmap( 133 virtual void CopyCurrentRenderPassToBitmap(
133 DrawingFrame* frame, 134 DrawingFrame* frame,
134 scoped_ptr<CopyOutputRequest> request) = 0; 135 scoped_ptr<CopyOutputRequest> request) = 0;
135 136
136 base::ScopedPtrHashMap<RenderPassId, ScopedResource> render_pass_textures_; 137 base::ScopedPtrHashMap<RenderPassId, ScopedResource> render_pass_textures_;
137 OutputSurface* output_surface_; 138 OutputSurface* output_surface_;
138 ResourceProvider* resource_provider_; 139 ResourceProvider* resource_provider_;
139 scoped_ptr<OverlayProcessor> overlay_processor_; 140 scoped_ptr<OverlayProcessor> overlay_processor_;
140 141
141 // For use in coordinate conversion, this stores the output rect, viewport 142 // For use in coordinate conversion, this stores the output rect, viewport
142 // rect (= unflipped version of glViewport rect), and the size of target 143 // rect (= unflipped version of glViewport rect), and the size of target
143 // framebuffer. During a draw, this stores the values for the current render 144 // framebuffer. During a draw, this stores the values for the current render
144 // pass; in between draws, they retain the values for the root render pass of 145 // pass; in between draws, they retain the values for the root render pass of
145 // the last draw. 146 // the last draw.
146 gfx::Rect current_draw_rect_; 147 gfx::Rect current_draw_rect_;
147 gfx::Rect current_viewport_rect_; 148 gfx::Rect current_viewport_rect_;
148 gfx::Size current_surface_size_; 149 gfx::Size current_surface_size_;
149 150
150 private: 151 private:
151 gfx::Vector2d enlarge_pass_texture_amount_; 152 gfx::Vector2d enlarge_pass_texture_amount_;
152 153
153 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); 154 DISALLOW_COPY_AND_ASSIGN(DirectRenderer);
154 }; 155 };
155 156
156 } // namespace cc 157 } // namespace cc
157 158
158 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ 159 #endif // CC_OUTPUT_DIRECT_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/layers/video_layer_impl.cc ('k') | cc/output/direct_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698