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

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

Issue 2870253004: Remove |highp_threshold_min| from GLRenderer() (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | cc/output/gl_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 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 <deque> 8 #include <deque>
9 #include <unordered_map> 9 #include <unordered_map>
10 #include <vector> 10 #include <vector>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 struct DrawRenderPassDrawQuadParams; 45 struct DrawRenderPassDrawQuadParams;
46 46
47 // Class that handles drawing of composited render layers using GL. 47 // Class that handles drawing of composited render layers using GL.
48 class CC_EXPORT GLRenderer : public DirectRenderer { 48 class CC_EXPORT GLRenderer : public DirectRenderer {
49 public: 49 public:
50 class ScopedUseGrContext; 50 class ScopedUseGrContext;
51 51
52 GLRenderer(const RendererSettings* settings, 52 GLRenderer(const RendererSettings* settings,
53 OutputSurface* output_surface, 53 OutputSurface* output_surface,
54 ResourceProvider* resource_provider, 54 ResourceProvider* resource_provider,
55 TextureMailboxDeleter* texture_mailbox_deleter, 55 TextureMailboxDeleter* texture_mailbox_deleter);
56 int highp_threshold_min);
57 ~GLRenderer() override; 56 ~GLRenderer() override;
58 57
59 bool use_swap_with_bounds() const { return use_swap_with_bounds_; } 58 bool use_swap_with_bounds() const { return use_swap_with_bounds_; }
60 59
61 void SwapBuffers(std::vector<ui::LatencyInfo> latency_info) override; 60 void SwapBuffers(std::vector<ui::LatencyInfo> latency_info) override;
62 void SwapBuffersComplete() override; 61 void SwapBuffersComplete() override;
63 62
64 void DidReceiveTextureInUseResponses( 63 void DidReceiveTextureInUseResponses(
65 const gpu::TextureInUseResponses& responses) override; 64 const gpu::TextureInUseResponses& responses) override;
66 65
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 TextureMailboxDeleter* texture_mailbox_deleter_; 315 TextureMailboxDeleter* texture_mailbox_deleter_;
317 316
318 gfx::Rect swap_buffer_rect_; 317 gfx::Rect swap_buffer_rect_;
319 std::vector<gfx::Rect> swap_content_bounds_; 318 std::vector<gfx::Rect> swap_content_bounds_;
320 gfx::Rect scissor_rect_; 319 gfx::Rect scissor_rect_;
321 bool is_scissor_enabled_ = false; 320 bool is_scissor_enabled_ = false;
322 bool stencil_shadow_ = false; 321 bool stencil_shadow_ = false;
323 bool blend_shadow_ = false; 322 bool blend_shadow_ = false;
324 const Program* current_program_ = nullptr; 323 const Program* current_program_ = nullptr;
325 TexturedQuadDrawCache draw_cache_; 324 TexturedQuadDrawCache draw_cache_;
326 int highp_threshold_min_ = 0;
327 int highp_threshold_cache_ = 0; 325 int highp_threshold_cache_ = 0;
328 326
329 struct PendingAsyncReadPixels; 327 struct PendingAsyncReadPixels;
330 std::vector<std::unique_ptr<PendingAsyncReadPixels>> 328 std::vector<std::unique_ptr<PendingAsyncReadPixels>>
331 pending_async_read_pixels_; 329 pending_async_read_pixels_;
332 330
333 std::unique_ptr<ResourceProvider::ScopedWriteLockGL> 331 std::unique_ptr<ResourceProvider::ScopedWriteLockGL>
334 current_framebuffer_lock_; 332 current_framebuffer_lock_;
335 // This is valid when current_framebuffer_lock_ is not null. 333 // This is valid when current_framebuffer_lock_ is not null.
336 ResourceFormat current_framebuffer_format_; 334 ResourceFormat current_framebuffer_format_;
(...skipping 30 matching lines...) Expand all
367 gfx::Size offscreen_stencil_renderbuffer_size_; 365 gfx::Size offscreen_stencil_renderbuffer_size_;
368 366
369 base::WeakPtrFactory<GLRenderer> weak_ptr_factory_; 367 base::WeakPtrFactory<GLRenderer> weak_ptr_factory_;
370 368
371 DISALLOW_COPY_AND_ASSIGN(GLRenderer); 369 DISALLOW_COPY_AND_ASSIGN(GLRenderer);
372 }; 370 };
373 371
374 } // namespace cc 372 } // namespace cc
375 373
376 #endif // CC_OUTPUT_GL_RENDERER_H_ 374 #endif // CC_OUTPUT_GL_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698