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

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

Issue 14060015: cc: Async readback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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_pixeltest.cc ('k') | cc/output/software_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_SOFTWARE_RENDERER_H_ 5 #ifndef CC_OUTPUT_SOFTWARE_RENDERER_H_
6 #define CC_OUTPUT_SOFTWARE_RENDERER_H_ 6 #define CC_OUTPUT_SOFTWARE_RENDERER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "cc/output/compositor_frame.h" 10 #include "cc/output/compositor_frame.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 gfx::Rect framebuffer_rect) OVERRIDE; 51 gfx::Rect framebuffer_rect) OVERRIDE;
52 virtual void SetDrawViewportSize(gfx::Size viewport_size) OVERRIDE; 52 virtual void SetDrawViewportSize(gfx::Size viewport_size) OVERRIDE;
53 virtual void SetScissorTestRect(gfx::Rect scissor_rect) OVERRIDE; 53 virtual void SetScissorTestRect(gfx::Rect scissor_rect) OVERRIDE;
54 virtual void ClearFramebuffer(DrawingFrame* frame) OVERRIDE; 54 virtual void ClearFramebuffer(DrawingFrame* frame) OVERRIDE;
55 virtual void DoDrawQuad(DrawingFrame* frame, const DrawQuad* quad) OVERRIDE; 55 virtual void DoDrawQuad(DrawingFrame* frame, const DrawQuad* quad) OVERRIDE;
56 virtual void BeginDrawingFrame(DrawingFrame* frame) OVERRIDE; 56 virtual void BeginDrawingFrame(DrawingFrame* frame) OVERRIDE;
57 virtual void FinishDrawingFrame(DrawingFrame* frame) OVERRIDE; 57 virtual void FinishDrawingFrame(DrawingFrame* frame) OVERRIDE;
58 virtual bool FlippedFramebuffer() const OVERRIDE; 58 virtual bool FlippedFramebuffer() const OVERRIDE;
59 virtual void EnsureScissorTestEnabled() OVERRIDE; 59 virtual void EnsureScissorTestEnabled() OVERRIDE;
60 virtual void EnsureScissorTestDisabled() OVERRIDE; 60 virtual void EnsureScissorTestDisabled() OVERRIDE;
61 virtual void CopyCurrentRenderPassToBitmap(DrawingFrame* frame,
62 SkBitmap* bitmap) OVERRIDE;
61 63
62 private: 64 private:
63 SoftwareRenderer( 65 SoftwareRenderer(
64 RendererClient* client, 66 RendererClient* client,
65 OutputSurface* output_surface, 67 OutputSurface* output_surface,
66 ResourceProvider* resource_provider); 68 ResourceProvider* resource_provider);
67 69
68 void ClearCanvas(SkColor color); 70 void ClearCanvas(SkColor color);
69 void SetClipRect(gfx::Rect rect); 71 void SetClipRect(gfx::Rect rect);
70 bool IsSoftwareResource(ResourceProvider::ResourceId resource_id) const; 72 bool IsSoftwareResource(ResourceProvider::ResourceId resource_id) const;
(...skipping 25 matching lines...) Expand all
96 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware> 98 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware>
97 current_framebuffer_lock_; 99 current_framebuffer_lock_;
98 CompositorFrame compositor_frame_; 100 CompositorFrame compositor_frame_;
99 101
100 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); 102 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer);
101 }; 103 };
102 104
103 } // namespace cc 105 } // namespace cc
104 106
105 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ 107 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/output/gl_renderer_pixeltest.cc ('k') | cc/output/software_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698