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

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

Issue 2465093002: cc: Add OutputSurface state snapshots.
Patch Set: nits Created 4 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 | « no previous file | cc/output/direct_renderer.cc » ('j') | cc/output/output_surface_client.h » ('J')
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 <memory> 8 #include <memory>
9 #include <unordered_map> 9 #include <unordered_map>
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 void DrawFrame(RenderPassList* render_passes_in_draw_order, 55 void DrawFrame(RenderPassList* render_passes_in_draw_order,
56 float device_scale_factor, 56 float device_scale_factor,
57 const gfx::ColorSpace& device_color_space, 57 const gfx::ColorSpace& device_color_space,
58 const gfx::Size& device_viewport_size); 58 const gfx::Size& device_viewport_size);
59 59
60 // Public interface implemented by subclasses. 60 // Public interface implemented by subclasses.
61 virtual void SwapBuffers(std::vector<ui::LatencyInfo> latency_info) = 0; 61 virtual void SwapBuffers(std::vector<ui::LatencyInfo> latency_info) = 0;
62 virtual void SwapBuffersComplete() {} 62 virtual void SwapBuffersComplete() {}
63 virtual void DidReceiveTextureInUseResponses( 63 virtual void DidReceiveTextureInUseResponses(
64 const gpu::TextureInUseResponses& responses) {} 64 const gpu::TextureInUseResponses& responses) {}
65 virtual void ReadbackSwappedOverlayTextures(
66 std::vector<SkBitmap>* bitmaps,
67 const base::Callback<void(bool)>& callback);
65 68
66 // Allow tests to enlarge the texture size of non-root render passes to 69 // Allow tests to enlarge the texture size of non-root render passes to
67 // verify cases where the texture doesn't match the render pass size. 70 // verify cases where the texture doesn't match the render pass size.
68 void SetEnlargePassTextureAmountForTesting(const gfx::Size& amount) { 71 void SetEnlargePassTextureAmountForTesting(const gfx::Size& amount) {
69 enlarge_pass_texture_amount_ = amount; 72 enlarge_pass_texture_amount_ = amount;
70 } 73 }
71 74
72 // Public for tests that poke at internals. 75 // Public for tests that poke at internals.
73 struct CC_EXPORT DrawingFrame { 76 struct CC_EXPORT DrawingFrame {
74 DrawingFrame(); 77 DrawingFrame();
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 float reshape_device_scale_factor_ = 0.f; 217 float reshape_device_scale_factor_ = 0.f;
215 gfx::ColorSpace reshape_device_color_space_; 218 gfx::ColorSpace reshape_device_color_space_;
216 bool reshape_has_alpha_ = false; 219 bool reshape_has_alpha_ = false;
217 220
218 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); 221 DISALLOW_COPY_AND_ASSIGN(DirectRenderer);
219 }; 222 };
220 223
221 } // namespace cc 224 } // namespace cc
222 225
223 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ 226 #endif // CC_OUTPUT_DIRECT_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/direct_renderer.cc » ('j') | cc/output/output_surface_client.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698