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

Side by Side Diff: cc/test/test_web_graphics_context_3d.h

Issue 671653005: SetNeedsRedraw directly when updating a visible tile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pinchblurmerge-test: nits Created 6 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 5 #ifndef CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
6 #define CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 6 #define CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 350
351 void SetMaxTransferBufferUsageBytes(size_t max_transfer_buffer_usage_bytes); 351 void SetMaxTransferBufferUsageBytes(size_t max_transfer_buffer_usage_bytes);
352 size_t max_used_transfer_buffer_usage_bytes() const { 352 size_t max_used_transfer_buffer_usage_bytes() const {
353 return max_used_transfer_buffer_usage_bytes_; 353 return max_used_transfer_buffer_usage_bytes_;
354 } 354 }
355 355
356 void set_test_support(TestContextSupport* test_support) { 356 void set_test_support(TestContextSupport* test_support) {
357 test_support_ = test_support; 357 test_support_ = test_support;
358 } 358 }
359 359
360 // Set this to 1 to make async texture uploads complete.
361 void set_query_result_available_ext(int value) {
362 query_result_available_ext_ = value;
363 }
364
360 int width() const { return width_; } 365 int width() const { return width_; }
361 int height() const { return height_; } 366 int height() const { return height_; }
362 bool reshape_called() const { return reshape_called_; } 367 bool reshape_called() const { return reshape_called_; }
363 void clear_reshape_called() { reshape_called_ = false; } 368 void clear_reshape_called() { reshape_called_ = false; }
364 float scale_factor() const { return scale_factor_; } 369 float scale_factor() const { return scale_factor_; }
365 370
366 enum UpdateType { 371 enum UpdateType {
367 NoUpdate = 0, 372 NoUpdate = 0,
368 PrepareTexture, 373 PrepareTexture,
369 PostSubBuffer 374 PostSubBuffer
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 int max_texture_size_; 458 int max_texture_size_;
454 bool reshape_called_; 459 bool reshape_called_;
455 int width_; 460 int width_;
456 int height_; 461 int height_;
457 float scale_factor_; 462 float scale_factor_;
458 TestContextSupport* test_support_; 463 TestContextSupport* test_support_;
459 gfx::Rect update_rect_; 464 gfx::Rect update_rect_;
460 UpdateType last_update_type_; 465 UpdateType last_update_type_;
461 unsigned next_insert_sync_point_; 466 unsigned next_insert_sync_point_;
462 unsigned last_waited_sync_point_; 467 unsigned last_waited_sync_point_;
468 int query_result_available_ext_;
463 469
464 unsigned bound_buffer_; 470 unsigned bound_buffer_;
465 TextureTargets texture_targets_; 471 TextureTargets texture_targets_;
466 472
467 scoped_refptr<Namespace> namespace_; 473 scoped_refptr<Namespace> namespace_;
468 static Namespace* shared_namespace_; 474 static Namespace* shared_namespace_;
469 475
470 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; 476 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_;
471 }; 477 };
472 478
473 } // namespace cc 479 } // namespace cc
474 480
475 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 481 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698