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

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: Rebase. Created 7 years, 6 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
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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 bool is_backbuffer_discarded_; 418 bool is_backbuffer_discarded_;
418 bool discard_backbuffer_when_not_visible_; 419 bool discard_backbuffer_when_not_visible_;
419 bool is_using_bind_uniform_; 420 bool is_using_bind_uniform_;
420 bool visible_; 421 bool visible_;
421 bool is_scissor_enabled_; 422 bool is_scissor_enabled_;
422 bool blend_shadow_; 423 bool blend_shadow_;
423 unsigned program_shadow_; 424 unsigned program_shadow_;
424 TexturedQuadDrawCache draw_cache_; 425 TexturedQuadDrawCache draw_cache_;
425 int highp_threshold_min_; 426 int highp_threshold_min_;
426 int highp_threshold_cache_; 427 int highp_threshold_cache_;
428 bool offscreen_context_labelled_;
427 429
428 struct PendingAsyncReadPixels; 430 struct PendingAsyncReadPixels;
429 ScopedPtrVector<PendingAsyncReadPixels> pending_async_read_pixels_; 431 ScopedPtrVector<PendingAsyncReadPixels> pending_async_read_pixels_;
430 432
431 scoped_ptr<ResourceProvider::ScopedWriteLockGL> current_framebuffer_lock_; 433 scoped_ptr<ResourceProvider::ScopedWriteLockGL> current_framebuffer_lock_;
432 434
433 scoped_refptr<ResourceProvider::Fence> last_swap_fence_; 435 scoped_refptr<ResourceProvider::Fence> last_swap_fence_;
434 436
435 SkBitmap on_demand_tile_raster_bitmap_; 437 SkBitmap on_demand_tile_raster_bitmap_;
436 ResourceProvider::ResourceId on_demand_tile_raster_resource_id_; 438 ResourceProvider::ResourceId on_demand_tile_raster_resource_id_;
(...skipping 11 matching lines...) Expand all
448 #if DEBUG_GL_CALLS && !defined(NDEBUG) 450 #if DEBUG_GL_CALLS && !defined(NDEBUG)
449 #define GLC(context, x) \ 451 #define GLC(context, x) \
450 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) 452 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__))
451 #else 453 #else
452 #define GLC(context, x) (x) 454 #define GLC(context, x) (x)
453 #endif 455 #endif
454 456
455 } // namespace cc 457 } // namespace cc
456 458
457 #endif // CC_OUTPUT_GL_RENDERER_H_ 459 #endif // CC_OUTPUT_GL_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698