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

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: Fix raster-on-demand codepath 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
« no previous file with comments | « no previous file | cc/output/gl_renderer.cc » ('j') | cc/output/gl_renderer.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 "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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 441
442 struct PendingAsyncReadPixels; 442 struct PendingAsyncReadPixels;
443 ScopedPtrVector<PendingAsyncReadPixels> pending_async_read_pixels_; 443 ScopedPtrVector<PendingAsyncReadPixels> pending_async_read_pixels_;
444 444
445 scoped_ptr<ResourceProvider::ScopedWriteLockGL> current_framebuffer_lock_; 445 scoped_ptr<ResourceProvider::ScopedWriteLockGL> current_framebuffer_lock_;
446 446
447 scoped_refptr<ResourceProvider::Fence> last_swap_fence_; 447 scoped_refptr<ResourceProvider::Fence> last_swap_fence_;
448 448
449 SkBitmap on_demand_tile_raster_bitmap_; 449 SkBitmap on_demand_tile_raster_bitmap_;
450 ResourceProvider::ResourceId on_demand_tile_raster_resource_id_; 450 ResourceProvider::ResourceId on_demand_tile_raster_resource_id_;
451 bool use_16_bit_resources_;
451 452
452 DISALLOW_COPY_AND_ASSIGN(GLRenderer); 453 DISALLOW_COPY_AND_ASSIGN(GLRenderer);
453 }; 454 };
454 455
455 // Setting DEBUG_GL_CALLS to 1 will call glGetError() after almost every GL 456 // Setting DEBUG_GL_CALLS to 1 will call glGetError() after almost every GL
456 // call made by the compositor. Useful for debugging rendering issues but 457 // call made by the compositor. Useful for debugging rendering issues but
457 // will significantly degrade performance. 458 // will significantly degrade performance.
458 #define DEBUG_GL_CALLS 0 459 #define DEBUG_GL_CALLS 0
459 460
460 #if DEBUG_GL_CALLS && !defined(NDEBUG) 461 #if DEBUG_GL_CALLS && !defined(NDEBUG)
461 #define GLC(context, x) \ 462 #define GLC(context, x) \
462 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) 463 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__))
463 #else 464 #else
464 #define GLC(context, x) (x) 465 #define GLC(context, x) (x)
465 #endif 466 #endif
466 467
467 } // namespace cc 468 } // namespace cc
468 469
469 #endif // CC_OUTPUT_GL_RENDERER_H_ 470 #endif // CC_OUTPUT_GL_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/gl_renderer.cc » ('j') | cc/output/gl_renderer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698