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

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

Issue 23653002: Move ScopedPtrHashMap from cc to base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: jam's comment Created 7 years, 3 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
« no previous file with comments | « cc/debug/test_web_graphics_context_3d.cc ('k') | cc/output/direct_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 CC_OUTPUT_DIRECT_RENDERER_H_ 5 #ifndef CC_OUTPUT_DIRECT_RENDERER_H_
6 #define CC_OUTPUT_DIRECT_RENDERER_H_ 6 #define CC_OUTPUT_DIRECT_RENDERER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/containers/scoped_ptr_hash_map.h"
10 #include "cc/base/cc_export.h" 11 #include "cc/base/cc_export.h"
11 #include "cc/output/renderer.h" 12 #include "cc/output/renderer.h"
12 #include "cc/resources/resource_provider.h" 13 #include "cc/resources/resource_provider.h"
13 #include "cc/resources/scoped_resource.h" 14 #include "cc/resources/scoped_resource.h"
14 15
15 namespace cc { 16 namespace cc {
16 17
17 class ResourceProvider; 18 class ResourceProvider;
18 19
19 // This is the base class for code shared between the GL and software 20 // This is the base class for code shared between the GL and software
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 virtual bool FlippedFramebuffer() const = 0; 114 virtual bool FlippedFramebuffer() const = 0;
114 virtual void EnsureScissorTestEnabled() = 0; 115 virtual void EnsureScissorTestEnabled() = 0;
115 virtual void EnsureScissorTestDisabled() = 0; 116 virtual void EnsureScissorTestDisabled() = 0;
116 virtual void DiscardBackbuffer() {} 117 virtual void DiscardBackbuffer() {}
117 virtual void EnsureBackbuffer() {} 118 virtual void EnsureBackbuffer() {}
118 119
119 virtual void CopyCurrentRenderPassToBitmap( 120 virtual void CopyCurrentRenderPassToBitmap(
120 DrawingFrame* frame, 121 DrawingFrame* frame,
121 scoped_ptr<CopyOutputRequest> request) = 0; 122 scoped_ptr<CopyOutputRequest> request) = 0;
122 123
123 ScopedPtrHashMap<RenderPass::Id, CachedResource> render_pass_textures_; 124 base::ScopedPtrHashMap<RenderPass::Id, CachedResource> render_pass_textures_;
124 OutputSurface* output_surface_; 125 OutputSurface* output_surface_;
125 ResourceProvider* resource_provider_; 126 ResourceProvider* resource_provider_;
126 127
127 // For use in coordinate conversion, this stores the output rect, viewport 128 // For use in coordinate conversion, this stores the output rect, viewport
128 // rect (= unflipped version of glViewport rect), and the size of target 129 // rect (= unflipped version of glViewport rect), and the size of target
129 // framebuffer. During a draw, this stores the values for the current render 130 // framebuffer. During a draw, this stores the values for the current render
130 // pass; in between draws, they retain the values for the root render pass of 131 // pass; in between draws, they retain the values for the root render pass of
131 // the last draw. 132 // the last draw.
132 gfx::Rect current_draw_rect_; 133 gfx::Rect current_draw_rect_;
133 gfx::Rect current_viewport_rect_; 134 gfx::Rect current_viewport_rect_;
134 gfx::Size current_surface_size_; 135 gfx::Size current_surface_size_;
135 136
136 private: 137 private:
137 gfx::Vector2d enlarge_pass_texture_amount_; 138 gfx::Vector2d enlarge_pass_texture_amount_;
138 139
139 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); 140 DISALLOW_COPY_AND_ASSIGN(DirectRenderer);
140 }; 141 };
141 142
142 } // namespace cc 143 } // namespace cc
143 144
144 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ 145 #endif // CC_OUTPUT_DIRECT_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/debug/test_web_graphics_context_3d.cc ('k') | cc/output/direct_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698