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

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

Issue 17350003: gpu: Add more context labelling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@GPU_add_context_names
Patch Set: Fix build. Created 7 years, 5 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 | « cc/output/delegating_renderer.cc ('k') | 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 "base/cancelable_callback.h" 8 #include "base/cancelable_callback.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "cc/base/scoped_ptr_vector.h" 10 #include "cc/base/scoped_ptr_vector.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 virtual void SendManagedMemoryStats(size_t bytes_visible, 71 virtual void SendManagedMemoryStats(size_t bytes_visible,
72 size_t bytes_visible_and_nearby, 72 size_t bytes_visible_and_nearby,
73 size_t bytes_allocated) OVERRIDE; 73 size_t bytes_allocated) OVERRIDE;
74 74
75 static void DebugGLCall(WebKit::WebGraphicsContext3D* context, 75 static void DebugGLCall(WebKit::WebGraphicsContext3D* context,
76 const char* command, 76 const char* command,
77 const char* file, 77 const char* file,
78 int line); 78 int line);
79 79
80 bool CanUseSkiaGPUBackend() const; 80 bool CanUseSkiaGPUBackend() const;
81 void LazyLabelOffscreenContext();
81 82
82 protected: 83 protected:
83 GLRenderer(RendererClient* client, 84 GLRenderer(RendererClient* client,
84 OutputSurface* output_surface, 85 OutputSurface* output_surface,
85 ResourceProvider* resource_provider, 86 ResourceProvider* resource_provider,
86 int highp_threshold_min); 87 int highp_threshold_min);
87 88
88 bool IsBackbufferDiscarded() const { return is_backbuffer_discarded_; } 89 bool IsBackbufferDiscarded() const { return is_backbuffer_discarded_; }
89 bool Initialize(); 90 bool Initialize();
90 void InitializeGrContext(); 91 void InitializeGrContext();
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 bool is_backbuffer_discarded_; 420 bool is_backbuffer_discarded_;
420 bool discard_backbuffer_when_not_visible_; 421 bool discard_backbuffer_when_not_visible_;
421 bool is_using_bind_uniform_; 422 bool is_using_bind_uniform_;
422 bool visible_; 423 bool visible_;
423 bool is_scissor_enabled_; 424 bool is_scissor_enabled_;
424 bool blend_shadow_; 425 bool blend_shadow_;
425 unsigned program_shadow_; 426 unsigned program_shadow_;
426 TexturedQuadDrawCache draw_cache_; 427 TexturedQuadDrawCache draw_cache_;
427 int highp_threshold_min_; 428 int highp_threshold_min_;
428 int highp_threshold_cache_; 429 int highp_threshold_cache_;
430 bool offscreen_context_labelled_;
429 431
430 struct PendingAsyncReadPixels; 432 struct PendingAsyncReadPixels;
431 ScopedPtrVector<PendingAsyncReadPixels> pending_async_read_pixels_; 433 ScopedPtrVector<PendingAsyncReadPixels> pending_async_read_pixels_;
432 434
433 scoped_ptr<ResourceProvider::ScopedWriteLockGL> current_framebuffer_lock_; 435 scoped_ptr<ResourceProvider::ScopedWriteLockGL> current_framebuffer_lock_;
434 436
435 scoped_refptr<ResourceProvider::Fence> last_swap_fence_; 437 scoped_refptr<ResourceProvider::Fence> last_swap_fence_;
436 438
437 SkBitmap on_demand_tile_raster_bitmap_; 439 SkBitmap on_demand_tile_raster_bitmap_;
438 ResourceProvider::ResourceId on_demand_tile_raster_resource_id_; 440 ResourceProvider::ResourceId on_demand_tile_raster_resource_id_;
(...skipping 11 matching lines...) Expand all
450 #if DEBUG_GL_CALLS && !defined(NDEBUG) 452 #if DEBUG_GL_CALLS && !defined(NDEBUG)
451 #define GLC(context, x) \ 453 #define GLC(context, x) \
452 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) 454 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__))
453 #else 455 #else
454 #define GLC(context, x) (x) 456 #define GLC(context, x) (x)
455 #endif 457 #endif
456 458
457 } // namespace cc 459 } // namespace cc
458 460
459 #endif // CC_OUTPUT_GL_RENDERER_H_ 461 #endif // CC_OUTPUT_GL_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/output/delegating_renderer.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698