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

Side by Side Diff: cc/software_renderer.h

Issue 11293121: Add latency measurement system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor input event changes Created 8 years 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 18 matching lines...) Expand all
29 29
30 virtual void viewportChanged() OVERRIDE; 30 virtual void viewportChanged() OVERRIDE;
31 31
32 virtual void finish() OVERRIDE; 32 virtual void finish() OVERRIDE;
33 33
34 virtual bool swapBuffers() OVERRIDE; 34 virtual bool swapBuffers() OVERRIDE;
35 35
36 virtual void getFramebufferPixels(void *pixels, const gfx::Rect&) OVERRIDE; 36 virtual void getFramebufferPixels(void *pixels, const gfx::Rect&) OVERRIDE;
37 37
38 virtual void setVisible(bool) OVERRIDE; 38 virtual void setVisible(bool) OVERRIDE;
39 virtual void setLatencyInfo(const WebKit::WebLatencyInfoImpl& latency_info) OVERRIDE;
39 40
40 virtual void sendManagedMemoryStats(size_t bytesVisible, size_t bytesVisible AndNearby, size_t bytesAllocated) OVERRIDE { } 41 virtual void sendManagedMemoryStats(size_t bytesVisible, size_t bytesVisible AndNearby, size_t bytesAllocated) OVERRIDE { }
41 42
42 protected: 43 protected:
43 virtual void bindFramebufferToOutputSurface(DrawingFrame&) OVERRIDE; 44 virtual void bindFramebufferToOutputSurface(DrawingFrame&) OVERRIDE;
44 virtual bool bindFramebufferToTexture(DrawingFrame&, const ScopedResource*, const gfx::Rect& framebufferRect) OVERRIDE; 45 virtual bool bindFramebufferToTexture(DrawingFrame&, const ScopedResource*, const gfx::Rect& framebufferRect) OVERRIDE;
45 virtual void setDrawViewportSize(const gfx::Size&) OVERRIDE; 46 virtual void setDrawViewportSize(const gfx::Size&) OVERRIDE;
46 virtual void setScissorTestRect(const gfx::Rect& scissorRect) OVERRIDE; 47 virtual void setScissorTestRect(const gfx::Rect& scissorRect) OVERRIDE;
47 virtual void clearFramebuffer(DrawingFrame&) OVERRIDE; 48 virtual void clearFramebuffer(DrawingFrame&) OVERRIDE;
48 virtual void drawQuad(DrawingFrame&, const DrawQuad*) OVERRIDE; 49 virtual void drawQuad(DrawingFrame&, const DrawQuad*) OVERRIDE;
(...skipping 23 matching lines...) Expand all
72 SkCanvas* m_skCurrentCanvas; 73 SkCanvas* m_skCurrentCanvas;
73 SkPaint m_skCurrentPaint; 74 SkPaint m_skCurrentPaint;
74 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware> m_currentFramebufferLo ck; 75 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware> m_currentFramebufferLo ck;
75 76
76 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); 77 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer);
77 }; 78 };
78 79
79 } 80 }
80 81
81 #endif // CC_SOFTWARE_RENDERER_H_ 82 #endif // CC_SOFTWARE_RENDERER_H_
OLDNEW
« cc/gl_renderer.h ('K') | « 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