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

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

Issue 14705008: cc: Cache highp_threshold in TexCoordPrecisionRequired (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Use local cache rather than global cache to avoid thread hazards. Created 7 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') | cc/output/shader.cc » ('J')
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 "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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 bool is_viewport_changed_; 370 bool is_viewport_changed_;
371 bool is_backbuffer_discarded_; 371 bool is_backbuffer_discarded_;
372 bool discard_backbuffer_when_not_visible_; 372 bool discard_backbuffer_when_not_visible_;
373 bool is_using_bind_uniform_; 373 bool is_using_bind_uniform_;
374 bool visible_; 374 bool visible_;
375 bool is_scissor_enabled_; 375 bool is_scissor_enabled_;
376 bool blend_shadow_; 376 bool blend_shadow_;
377 unsigned program_shadow_; 377 unsigned program_shadow_;
378 TexturedQuadDrawCache draw_cache_; 378 TexturedQuadDrawCache draw_cache_;
379 int highp_threshold_min_; 379 int highp_threshold_min_;
380 int highp_threshold_cache_;
380 381
381 scoped_ptr<ResourceProvider::ScopedWriteLockGL> current_framebuffer_lock_; 382 scoped_ptr<ResourceProvider::ScopedWriteLockGL> current_framebuffer_lock_;
382 383
383 scoped_refptr<ResourceProvider::Fence> last_swap_fence_; 384 scoped_refptr<ResourceProvider::Fence> last_swap_fence_;
384 385
385 SkBitmap on_demand_tile_raster_bitmap_; 386 SkBitmap on_demand_tile_raster_bitmap_;
386 ResourceProvider::ResourceId on_demand_tile_raster_resource_id_; 387 ResourceProvider::ResourceId on_demand_tile_raster_resource_id_;
387 388
388 DISALLOW_COPY_AND_ASSIGN(GLRenderer); 389 DISALLOW_COPY_AND_ASSIGN(GLRenderer);
389 }; 390 };
390 391
391 // Setting DEBUG_GL_CALLS to 1 will call glGetError() after almost every GL 392 // Setting DEBUG_GL_CALLS to 1 will call glGetError() after almost every GL
392 // call made by the compositor. Useful for debugging rendering issues but 393 // call made by the compositor. Useful for debugging rendering issues but
393 // will significantly degrade performance. 394 // will significantly degrade performance.
394 #define DEBUG_GL_CALLS 0 395 #define DEBUG_GL_CALLS 0
395 396
396 #if DEBUG_GL_CALLS && !defined(NDEBUG) 397 #if DEBUG_GL_CALLS && !defined(NDEBUG)
397 #define GLC(context, x) \ 398 #define GLC(context, x) \
398 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) 399 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__))
399 #else 400 #else
400 #define GLC(context, x) (x) 401 #define GLC(context, x) (x)
401 #endif 402 #endif
402 403
403 } // namespace cc 404 } // namespace cc
404 405
405 #endif // CC_OUTPUT_GL_RENDERER_H_ 406 #endif // CC_OUTPUT_GL_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/gl_renderer.cc » ('j') | cc/output/shader.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698