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

Side by Side Diff: cc/software_renderer.h

Issue 11378004: Remove DirectRenderer::disableScissorTest, always leave GL_SCISSOR_TEST enabled in GlRenderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | 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 29 matching lines...) Expand all
40 40
41 virtual void setVisible(bool) OVERRIDE; 41 virtual void setVisible(bool) OVERRIDE;
42 42
43 virtual void sendManagedMemoryStats(size_t bytesVisible, size_t bytesVisible AndNearby, size_t bytesAllocated) OVERRIDE { } 43 virtual void sendManagedMemoryStats(size_t bytesVisible, size_t bytesVisible AndNearby, size_t bytesAllocated) OVERRIDE { }
44 44
45 protected: 45 protected:
46 virtual void bindFramebufferToOutputSurface(DrawingFrame&) OVERRIDE; 46 virtual void bindFramebufferToOutputSurface(DrawingFrame&) OVERRIDE;
47 virtual bool bindFramebufferToTexture(DrawingFrame&, const ScopedTexture*, c onst gfx::Rect& framebufferRect) OVERRIDE; 47 virtual bool bindFramebufferToTexture(DrawingFrame&, const ScopedTexture*, c onst gfx::Rect& framebufferRect) OVERRIDE;
48 virtual void setDrawViewportSize(const gfx::Size&) OVERRIDE; 48 virtual void setDrawViewportSize(const gfx::Size&) OVERRIDE;
49 virtual void enableScissorTestRect(const gfx::Rect& scissorRect) OVERRIDE; 49 virtual void enableScissorTestRect(const gfx::Rect& scissorRect) OVERRIDE;
50 virtual void disableScissorTest() OVERRIDE;
51 virtual void clearFramebuffer(DrawingFrame&) OVERRIDE; 50 virtual void clearFramebuffer(DrawingFrame&) OVERRIDE;
52 virtual void drawQuad(DrawingFrame&, const DrawQuad*) OVERRIDE; 51 virtual void drawQuad(DrawingFrame&, const DrawQuad*) OVERRIDE;
53 virtual void beginDrawingFrame(DrawingFrame&) OVERRIDE; 52 virtual void beginDrawingFrame(DrawingFrame&) OVERRIDE;
54 virtual void finishDrawingFrame(DrawingFrame&) OVERRIDE; 53 virtual void finishDrawingFrame(DrawingFrame&) OVERRIDE;
55 virtual bool flippedFramebuffer() const OVERRIDE; 54 virtual bool flippedFramebuffer() const OVERRIDE;
56 55
57 private: 56 private:
58 SoftwareRenderer(RendererClient*, ResourceProvider*, WebKit::WebCompositorSo ftwareOutputDevice*); 57 SoftwareRenderer(RendererClient*, ResourceProvider*, WebKit::WebCompositorSo ftwareOutputDevice*);
59 58
60 bool isSoftwareResource(ResourceProvider::ResourceId) const; 59 bool isSoftwareResource(ResourceProvider::ResourceId) const;
(...skipping 13 matching lines...) Expand all
74 SkCanvas* m_skCurrentCanvas; 73 SkCanvas* m_skCurrentCanvas;
75 SkPaint m_skCurrentPaint; 74 SkPaint m_skCurrentPaint;
76 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware> m_currentFramebufferLo ck; 75 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware> m_currentFramebufferLo ck;
77 76
78 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); 77 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer);
79 }; 78 };
80 79
81 } 80 }
82 81
83 #endif // CC_SOFTWARE_RENDERER_H_ 82 #endif // CC_SOFTWARE_RENDERER_H_
OLDNEW
« cc/gl_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