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

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

Issue 21159007: cc: Adding support for RGBA_4444 tile textures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and feedback 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
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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 bool offscreen_context_labelled_; 448 bool offscreen_context_labelled_;
449 449
450 struct PendingAsyncReadPixels; 450 struct PendingAsyncReadPixels;
451 ScopedPtrVector<PendingAsyncReadPixels> pending_async_read_pixels_; 451 ScopedPtrVector<PendingAsyncReadPixels> pending_async_read_pixels_;
452 452
453 scoped_ptr<ResourceProvider::ScopedWriteLockGL> current_framebuffer_lock_; 453 scoped_ptr<ResourceProvider::ScopedWriteLockGL> current_framebuffer_lock_;
454 454
455 scoped_refptr<ResourceProvider::Fence> last_swap_fence_; 455 scoped_refptr<ResourceProvider::Fence> last_swap_fence_;
456 456
457 SkBitmap on_demand_tile_raster_bitmap_; 457 SkBitmap on_demand_tile_raster_bitmap_;
458 SkBitmap on_demand_tile_raster_bitmap_4444_;
458 ResourceProvider::ResourceId on_demand_tile_raster_resource_id_; 459 ResourceProvider::ResourceId on_demand_tile_raster_resource_id_;
459 460
460 DISALLOW_COPY_AND_ASSIGN(GLRenderer); 461 DISALLOW_COPY_AND_ASSIGN(GLRenderer);
461 }; 462 };
462 463
463 // Setting DEBUG_GL_CALLS to 1 will call glGetError() after almost every GL 464 // Setting DEBUG_GL_CALLS to 1 will call glGetError() after almost every GL
464 // call made by the compositor. Useful for debugging rendering issues but 465 // call made by the compositor. Useful for debugging rendering issues but
465 // will significantly degrade performance. 466 // will significantly degrade performance.
466 #define DEBUG_GL_CALLS 0 467 #define DEBUG_GL_CALLS 0
467 468
468 #if DEBUG_GL_CALLS && !defined(NDEBUG) 469 #if DEBUG_GL_CALLS && !defined(NDEBUG)
469 #define GLC(context, x) \ 470 #define GLC(context, x) \
470 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) 471 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__))
471 #else 472 #else
472 #define GLC(context, x) (x) 473 #define GLC(context, x) (x)
473 #endif 474 #endif
474 475
475 } // namespace cc 476 } // namespace cc
476 477
477 #endif // CC_OUTPUT_GL_RENDERER_H_ 478 #endif // CC_OUTPUT_GL_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698