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

Side by Side Diff: cc/software_renderer.h

Issue 12036091: Fixes a bug when the framebuffer is cleared with invalid scissor rect (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Some more clean up. Created 7 years, 11 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
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_SOFTWARE_RENDERER_H_ 5 #ifndef CC_SOFTWARE_RENDERER_H_
6 #define CC_SOFTWARE_RENDERER_H_ 6 #define CC_SOFTWARE_RENDERER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "cc/cc_export.h" 9 #include "cc/cc_export.h"
10 #include "cc/direct_renderer.h" 10 #include "cc/direct_renderer.h"
(...skipping 26 matching lines...) Expand all
37 37
38 virtual void setVisible(bool) OVERRIDE; 38 virtual void setVisible(bool) OVERRIDE;
39 39
40 virtual void sendManagedMemoryStats(size_t bytesVisible, size_t bytesVisible AndNearby, size_t bytesAllocated) OVERRIDE { } 40 virtual void sendManagedMemoryStats(size_t bytesVisible, size_t bytesVisible AndNearby, size_t bytesAllocated) OVERRIDE { }
41 41
42 protected: 42 protected:
43 virtual void bindFramebufferToOutputSurface(DrawingFrame&) OVERRIDE; 43 virtual void bindFramebufferToOutputSurface(DrawingFrame&) OVERRIDE;
44 virtual bool bindFramebufferToTexture(DrawingFrame&, const ScopedResource*, const gfx::Rect& framebufferRect) OVERRIDE; 44 virtual bool bindFramebufferToTexture(DrawingFrame&, const ScopedResource*, const gfx::Rect& framebufferRect) OVERRIDE;
45 virtual void setDrawViewportSize(const gfx::Size&) OVERRIDE; 45 virtual void setDrawViewportSize(const gfx::Size&) OVERRIDE;
46 virtual void setScissorTestRect(const gfx::Rect& scissorRect) OVERRIDE; 46 virtual void setScissorTestRect(const gfx::Rect& scissorRect) OVERRIDE;
47 virtual void clearFramebuffer(DrawingFrame&) OVERRIDE; 47 virtual void clearFramebuffer(DrawingFrame&, bool) OVERRIDE;
48 virtual void drawQuad(DrawingFrame&, const DrawQuad*) OVERRIDE; 48 virtual void drawQuad(DrawingFrame&, const DrawQuad*) OVERRIDE;
49 virtual void beginDrawingFrame(DrawingFrame&) OVERRIDE; 49 virtual void beginDrawingFrame(DrawingFrame&) OVERRIDE;
50 virtual void finishDrawingFrame(DrawingFrame&) OVERRIDE; 50 virtual void finishDrawingFrame(DrawingFrame&) OVERRIDE;
51 virtual bool flippedFramebuffer() const OVERRIDE; 51 virtual bool flippedFramebuffer() const OVERRIDE;
52 virtual void ensureScissorTestEnabled() OVERRIDE; 52 virtual void ensureScissorTestEnabled() OVERRIDE;
53 virtual void ensureScissorTestDisabled() OVERRIDE; 53 virtual void ensureScissorTestDisabled() OVERRIDE;
54 54
55 private: 55 private:
56 SoftwareRenderer(RendererClient*, ResourceProvider*, SoftwareOutputDevice*); 56 SoftwareRenderer(RendererClient*, ResourceProvider*, SoftwareOutputDevice*);
57 57
(...skipping 14 matching lines...) Expand all
72 SkCanvas* m_skCurrentCanvas; 72 SkCanvas* m_skCurrentCanvas;
73 SkPaint m_skCurrentPaint; 73 SkPaint m_skCurrentPaint;
74 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware> m_currentFramebufferLo ck; 74 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware> m_currentFramebufferLo ck;
75 75
76 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); 76 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer);
77 }; 77 };
78 78
79 } 79 }
80 80
81 #endif // CC_SOFTWARE_RENDERER_H_ 81 #endif // CC_SOFTWARE_RENDERER_H_
OLDNEW
« cc/direct_renderer.cc ('K') | « cc/gl_renderer.cc ('k') | cc/software_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698