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

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

Issue 1454323002: Display skips swapping if overlays draw the damage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try skipping the swap at the cc::Display level Created 5 years, 1 month 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/output/delegating_renderer.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 14 matching lines...) Expand all
25 // This is the base class for code shared between the GL and software 25 // This is the base class for code shared between the GL and software
26 // renderer implementations. "Direct" refers to the fact that it does not 26 // renderer implementations. "Direct" refers to the fact that it does not
27 // delegate rendering to another compositor. 27 // delegate rendering to another compositor.
28 class CC_EXPORT DirectRenderer : public Renderer { 28 class CC_EXPORT DirectRenderer : public Renderer {
29 public: 29 public:
30 ~DirectRenderer() override; 30 ~DirectRenderer() override;
31 31
32 void DecideRenderPassAllocationsForFrame( 32 void DecideRenderPassAllocationsForFrame(
33 const RenderPassList& render_passes_in_draw_order) override; 33 const RenderPassList& render_passes_in_draw_order) override;
34 bool HasAllocatedResourcesForTesting(RenderPassId id) const override; 34 bool HasAllocatedResourcesForTesting(RenderPassId id) const override;
35 void DrawFrame(RenderPassList* render_passes_in_draw_order, 35 DrawFrameResult DrawFrame(RenderPassList* render_passes_in_draw_order,
36 float device_scale_factor, 36 float device_scale_factor,
37 const gfx::Rect& device_viewport_rect, 37 const gfx::Rect& device_viewport_rect,
38 const gfx::Rect& device_clip_rect, 38 const gfx::Rect& device_clip_rect,
39 bool disable_picture_quad_image_filtering) override; 39 bool disable_picture_quad_image_filtering) override;
40 40
41 struct CC_EXPORT DrawingFrame { 41 struct CC_EXPORT DrawingFrame {
42 DrawingFrame(); 42 DrawingFrame();
43 ~DrawingFrame(); 43 ~DrawingFrame();
44 44
45 const RenderPassList* render_passes_in_draw_order; 45 const RenderPassList* render_passes_in_draw_order;
46 const RenderPass* root_render_pass; 46 const RenderPass* root_render_pass;
47 const RenderPass* current_render_pass; 47 const RenderPass* current_render_pass;
48 const ScopedResource* current_texture; 48 const ScopedResource* current_texture;
49 49
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 159
160 private: 160 private:
161 gfx::Vector2d enlarge_pass_texture_amount_; 161 gfx::Vector2d enlarge_pass_texture_amount_;
162 162
163 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); 163 DISALLOW_COPY_AND_ASSIGN(DirectRenderer);
164 }; 164 };
165 165
166 } // namespace cc 166 } // namespace cc
167 167
168 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ 168 #endif // CC_OUTPUT_DIRECT_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/output/delegating_renderer.cc ('k') | cc/output/direct_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698