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

Side by Side Diff: cc/software_renderer.h

Issue 11264056: cc: Use gfx:: Geometry types for positions, bounds, and related things. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ScaleAsVector 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
« no previous file with comments | « cc/single_thread_proxy.cc ('k') | cc/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 CCRendererSoftware_h 5 #ifndef CCRendererSoftware_h
6 #define CCRendererSoftware_h 6 #define CCRendererSoftware_h
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "cc/direct_renderer.h" 9 #include "cc/direct_renderer.h"
10 10
(...skipping 17 matching lines...) Expand all
28 virtual ~SoftwareRenderer(); 28 virtual ~SoftwareRenderer();
29 29
30 virtual const RendererCapabilities& capabilities() const OVERRIDE; 30 virtual const RendererCapabilities& capabilities() const OVERRIDE;
31 31
32 virtual void viewportChanged() OVERRIDE; 32 virtual void viewportChanged() OVERRIDE;
33 33
34 virtual void finish() OVERRIDE; 34 virtual void finish() OVERRIDE;
35 35
36 virtual bool swapBuffers() OVERRIDE; 36 virtual bool swapBuffers() OVERRIDE;
37 37
38 virtual void getFramebufferPixels(void *pixels, const IntRect&) OVERRIDE; 38 virtual void getFramebufferPixels(void *pixels, const gfx::Rect&) OVERRIDE;
39 39
40 virtual void setVisible(bool) OVERRIDE; 40 virtual void setVisible(bool) OVERRIDE;
41 41
42 virtual void sendManagedMemoryStats(size_t bytesVisible, size_t bytesVisible AndNearby, size_t bytesAllocated) OVERRIDE { } 42 virtual void sendManagedMemoryStats(size_t bytesVisible, size_t bytesVisible AndNearby, size_t bytesAllocated) OVERRIDE { }
43 43
44 protected: 44 protected:
45 virtual void bindFramebufferToOutputSurface(DrawingFrame&) OVERRIDE; 45 virtual void bindFramebufferToOutputSurface(DrawingFrame&) OVERRIDE;
46 virtual bool bindFramebufferToTexture(DrawingFrame&, const ScopedTexture*, c onst gfx::Rect& framebufferRect) OVERRIDE; 46 virtual bool bindFramebufferToTexture(DrawingFrame&, const ScopedTexture*, c onst gfx::Rect& framebufferRect) OVERRIDE;
47 virtual void setDrawViewportSize(const gfx::Size&) OVERRIDE; 47 virtual void setDrawViewportSize(const gfx::Size&) OVERRIDE;
48 virtual void enableScissorTestRect(const gfx::Rect& scissorRect) OVERRIDE; 48 virtual void enableScissorTestRect(const gfx::Rect& scissorRect) OVERRIDE;
(...skipping 24 matching lines...) Expand all
73 SkCanvas* m_skCurrentCanvas; 73 SkCanvas* m_skCurrentCanvas;
74 SkPaint m_skCurrentPaint; 74 SkPaint m_skCurrentPaint;
75 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware> m_currentFramebufferLo ck; 75 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware> m_currentFramebufferLo ck;
76 76
77 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); 77 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer);
78 }; 78 };
79 79
80 } 80 }
81 81
82 #endif 82 #endif
OLDNEW
« no previous file with comments | « cc/single_thread_proxy.cc ('k') | cc/software_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698