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

Side by Side Diff: cc/CCRendererSoftware.h

Issue 10984053: cc: Use ui/gfx geometry types for the CCRenderPass and CCDrawQuad classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 CCRendererSoftware_h 5 #ifndef CCRendererSoftware_h
6 #define CCRendererSoftware_h 6 #define CCRendererSoftware_h
7 7
8 #include "CCDirectRenderer.h" 8 #include "CCDirectRenderer.h"
9 #include "CCLayerTreeHost.h" 9 #include "CCLayerTreeHost.h"
10 #include <public/WebCompositorSoftwareOutputDevice.h> 10 #include <public/WebCompositorSoftwareOutputDevice.h>
(...skipping 14 matching lines...) Expand all
25 virtual ~CCRendererSoftware(); 25 virtual ~CCRendererSoftware();
26 26
27 virtual const RendererCapabilities& capabilities() const OVERRIDE; 27 virtual const RendererCapabilities& capabilities() const OVERRIDE;
28 28
29 virtual void viewportChanged() OVERRIDE; 29 virtual void viewportChanged() OVERRIDE;
30 30
31 virtual void finish() OVERRIDE; 31 virtual void finish() OVERRIDE;
32 32
33 virtual bool swapBuffers() OVERRIDE; 33 virtual bool swapBuffers() OVERRIDE;
34 34
35 virtual void getFramebufferPixels(void *pixels, const IntRect&) OVERRIDE; 35 virtual void getFramebufferPixels(void *pixels, const cc::IntRect&) OVERRIDE ;
36 36
37 virtual void setVisible(bool) OVERRIDE; 37 virtual void setVisible(bool) OVERRIDE;
38 38
39 protected: 39 protected:
40 virtual void bindFramebufferToOutputSurface(DrawingFrame&) OVERRIDE; 40 virtual void bindFramebufferToOutputSurface(DrawingFrame&) OVERRIDE;
41 virtual bool bindFramebufferToTexture(DrawingFrame&, const CCScopedTexture*, const IntRect& framebufferRect) OVERRIDE; 41 virtual bool bindFramebufferToTexture(DrawingFrame&, const CCScopedTexture*, const ccmath::IntRect& framebufferRect) OVERRIDE;
42 virtual void setDrawViewportSize(const IntSize&) OVERRIDE; 42 virtual void setDrawViewportSize(const ccmath::IntSize&) OVERRIDE;
43 virtual void enableScissorTestRect(const IntRect& scissorRect) OVERRIDE; 43 virtual void enableScissorTestRect(const ccmath::IntRect& scissorRect) OVERR IDE;
44 virtual void disableScissorTest() OVERRIDE; 44 virtual void disableScissorTest() OVERRIDE;
45 virtual void clearFramebuffer(DrawingFrame&) OVERRIDE; 45 virtual void clearFramebuffer(DrawingFrame&) OVERRIDE;
46 virtual void drawQuad(DrawingFrame&, const CCDrawQuad*) OVERRIDE; 46 virtual void drawQuad(DrawingFrame&, const CCDrawQuad*) OVERRIDE;
47 virtual void beginDrawingFrame(DrawingFrame&) OVERRIDE; 47 virtual void beginDrawingFrame(DrawingFrame&) OVERRIDE;
48 virtual void finishDrawingFrame(DrawingFrame&) OVERRIDE; 48 virtual void finishDrawingFrame(DrawingFrame&) OVERRIDE;
49 virtual bool flippedFramebuffer() const OVERRIDE; 49 virtual bool flippedFramebuffer() const OVERRIDE;
50 50
51 private: 51 private:
52 CCRendererSoftware(CCRendererClient*, CCResourceProvider*, WebKit::WebCompos itorSoftwareOutputDevice*); 52 CCRendererSoftware(CCRendererClient*, CCResourceProvider*, WebKit::WebCompos itorSoftwareOutputDevice*);
53 53
(...skipping 11 matching lines...) Expand all
65 WebKit::WebCompositorSoftwareOutputDevice* m_outputDevice; 65 WebKit::WebCompositorSoftwareOutputDevice* m_outputDevice;
66 SkCanvas m_skRootCanvas; 66 SkCanvas m_skRootCanvas;
67 SkCanvas* m_skCurrentCanvas; 67 SkCanvas* m_skCurrentCanvas;
68 SkPaint m_skCurrentPaint; 68 SkPaint m_skCurrentPaint;
69 OwnPtr<CCResourceProvider::ScopedWriteLockSoftware> m_currentFramebufferLock ; 69 OwnPtr<CCResourceProvider::ScopedWriteLockSoftware> m_currentFramebufferLock ;
70 }; 70 };
71 71
72 } 72 }
73 73
74 #endif 74 #endif
OLDNEW
« no previous file with comments | « cc/CCRendererGL.cpp ('k') | cc/CCRendererSoftware.cpp » ('j') | cc/math/clamp.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698