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

Side by Side Diff: cc/renderer.h

Issue 11618026: Move filters to RenderPassDrawQuad (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
« no previous file with comments | « cc/render_surface_impl.cc ('k') | cc/scoped_ptr_vector.h » ('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 CC_RENDERER_H_ 5 #ifndef CC_RENDERER_H_
6 #define CC_RENDERER_H_ 6 #define CC_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/layer_tree_host.h" 10 #include "cc/layer_tree_host.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 int viewportWidth() const { return viewportSize().width(); } 45 int viewportWidth() const { return viewportSize().width(); }
46 int viewportHeight() const { return viewportSize().height(); } 46 int viewportHeight() const { return viewportSize().height(); }
47 47
48 virtual void viewportChanged() { } 48 virtual void viewportChanged() { }
49 virtual void receiveCompositorFrameAck(const CompositorFrameAck&) { } 49 virtual void receiveCompositorFrameAck(const CompositorFrameAck&) { }
50 50
51 virtual void decideRenderPassAllocationsForFrame(const RenderPassList&) { } 51 virtual void decideRenderPassAllocationsForFrame(const RenderPassList&) { }
52 virtual bool haveCachedResourcesForRenderPassId(RenderPass::Id) const; 52 virtual bool haveCachedResourcesForRenderPassId(RenderPass::Id) const;
53 53
54 // This passes ownership of the render passes to the renderer. It should 54 // This passes ownership of the render passes to the renderer. It should
55 // consume them, and empty the list and hash map. 55 // consume them, and empty the list.
56 virtual void drawFrame(RenderPassList&, RenderPassIdHashMap&) = 0; 56 virtual void drawFrame(RenderPassList&) = 0;
57 57
58 // waits for rendering to finish 58 // waits for rendering to finish
59 virtual void finish() = 0; 59 virtual void finish() = 0;
60 60
61 virtual void doNoOp() { } 61 virtual void doNoOp() { }
62 // puts backbuffer onscreen 62 // puts backbuffer onscreen
63 virtual bool swapBuffers() = 0; 63 virtual bool swapBuffers() = 0;
64 64
65 virtual void getFramebufferPixels(void *pixels, const gfx::Rect&) = 0; 65 virtual void getFramebufferPixels(void *pixels, const gfx::Rect&) = 0;
66 66
(...skipping 10 matching lines...) Expand all
77 } 77 }
78 78
79 RendererClient* m_client; 79 RendererClient* m_client;
80 80
81 DISALLOW_COPY_AND_ASSIGN(Renderer); 81 DISALLOW_COPY_AND_ASSIGN(Renderer);
82 }; 82 };
83 83
84 } 84 }
85 85
86 #endif // CC_RENDERER_H_ 86 #endif // CC_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/render_surface_impl.cc ('k') | cc/scoped_ptr_vector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698