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

Side by Side Diff: cc/output/gl_renderer.h

Issue 14092003: Add compositor support for the LatencyInfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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_OUTPUT_GL_RENDERER_H_ 5 #ifndef CC_OUTPUT_GL_RENDERER_H_
6 #define CC_OUTPUT_GL_RENDERER_H_ 6 #define CC_OUTPUT_GL_RENDERER_H_
7 7
8 #include "cc/base/cc_export.h" 8 #include "cc/base/cc_export.h"
9 #include "cc/output/direct_renderer.h" 9 #include "cc/output/direct_renderer.h"
10 #include "cc/output/gl_renderer_draw_cache.h" 10 #include "cc/output/gl_renderer_draw_cache.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 virtual void ViewportChanged() OVERRIDE; 57 virtual void ViewportChanged() OVERRIDE;
58 58
59 virtual void ReceiveCompositorFrameAck(const CompositorFrameAck& ack) 59 virtual void ReceiveCompositorFrameAck(const CompositorFrameAck& ack)
60 OVERRIDE; 60 OVERRIDE;
61 61
62 // Waits for rendering to finish. 62 // Waits for rendering to finish.
63 virtual void Finish() OVERRIDE; 63 virtual void Finish() OVERRIDE;
64 64
65 virtual void DoNoOp() OVERRIDE; 65 virtual void DoNoOp() OVERRIDE;
66 // Puts backbuffer onscreen. 66 // Puts backbuffer onscreen.
67 virtual bool SwapBuffers() OVERRIDE; 67 virtual bool SwapBuffers(const LatencyInfo& latency_info) OVERRIDE;
68 68
69 virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) OVERRIDE; 69 virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) OVERRIDE;
70 70
71 virtual bool IsContextLost() OVERRIDE; 71 virtual bool IsContextLost() OVERRIDE;
72 72
73 virtual void SetVisible(bool visible) OVERRIDE; 73 virtual void SetVisible(bool visible) OVERRIDE;
74 74
75 virtual void SendManagedMemoryStats(size_t bytes_visible, 75 virtual void SendManagedMemoryStats(size_t bytes_visible,
76 size_t bytes_visible_and_nearby, 76 size_t bytes_visible_and_nearby,
77 size_t bytes_allocated) OVERRIDE; 77 size_t bytes_allocated) OVERRIDE;
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 #if DEBUG_GL_CALLS && !defined(NDEBUG) 401 #if DEBUG_GL_CALLS && !defined(NDEBUG)
402 #define GLC(context, x) \ 402 #define GLC(context, x) \
403 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) 403 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__))
404 #else 404 #else
405 #define GLC(context, x) (x) 405 #define GLC(context, x) (x)
406 #endif 406 #endif
407 407
408 } // namespace cc 408 } // namespace cc
409 409
410 #endif // CC_OUTPUT_GL_RENDERER_H_ 410 #endif // CC_OUTPUT_GL_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698